Question: Numerical) A fraction-handling program contains this menu: A. Add two fractions B. Convert a fraction to decimal C. Multiply two fractions Q. Quit a. Write
Numerical) A fraction-handling program contains this menu: A. Add two fractions B. Convert a fraction to decimal C. Multiply two fractions Q. Quit a. Write C++ code for the program with stub functions for the choices. The main() function of your program should display this menu, invoke one of the programs other functions based on the users choice, then display the value returned by the function. b. Insert this fractionToDecimal() function into the code, after your main() function: double fractionToDecimal(double numerator, double denominator) { return (numerator/denominator); } c. Complete the program by replacing the bodies of your remaining stub functions with code that performs the appropriate operations and returns a result back to the main() function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
