a. Function menu: This function informs the user about the program's purpose, explains how to enter data, and allows the user to select the operation.
b. Function addFractions: This function adds two fractions together (or you can overload the +operator()).
c. Function subtractFractions: This function subtracts one fraction from another (or you can overload the -operator()).
d. Function multiplyFractions: This function multiplies two fractions together (or you can overload the *operator()).
e. Function divideFractions: This function divides one fraction into another (or you can overload the /operator()).
Some sample outputs are:
3 / 4 + 2 / 5 = 23 / 20
2 / 3 * 3 / 5 = 6 / 15
Your answers need not be in the lowest terms.
Recently Asked Questions
- In which type of contract is the incentive for the contractor to control costs very high, but the contractor is also forced to bear a great deal of risk? Fixed
- Analysis of Algorithms What is Theta notation for the following recurrence relation. Please provide detailed work. T(n) = 2T(n-1) + n
- Which method is best suited to comparing the net present values for two capital investment projects when the cash flows vary? Sensitivity analysis Life-cycle