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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started