Write a driver function definition called add that takes as its parameters two FractionType objects. The driver function
Posted: Fri May 20, 2022 2:38 pm
Write a driver function definition called add that
takes as its parameters two FractionType objects. The
driver function should add two fractions together
and return a FractionType object. Remember that
the denominators of fractions cannot be 0. (Hint: validate each
fraction before performing the addition operation. Also, do
not to reduce the FractionType object to its simplest
form.) (15pts)
/*PASTE CODE HERE*/
Write a function called findMinMax that takes a
integer array, integer reference to the minimum value, integer
reference to the maximum value, and its size as parameters. The
function should find both the minimum and maximum values in the
integer array. Return the minimum and maximum values back to the
calling function. (15pts)
/*PASTE CODE HERE*/
takes as its parameters two FractionType objects. The
driver function should add two fractions together
and return a FractionType object. Remember that
the denominators of fractions cannot be 0. (Hint: validate each
fraction before performing the addition operation. Also, do
not to reduce the FractionType object to its simplest
form.) (15pts)
/*PASTE CODE HERE*/
Write a function called findMinMax that takes a
integer array, integer reference to the minimum value, integer
reference to the maximum value, and its size as parameters. The
function should find both the minimum and maximum values in the
integer array. Return the minimum and maximum values back to the
calling function. (15pts)
/*PASTE CODE HERE*/