Question: Design a fraction calculator program that allows us to perform basic arithmetic operations on fractions. The program should: Read two fractions from the user, each

Design a fraction calculator program that allows us to perform basic arithmetic operations
on fractions. The program should:
Read two fractions from the user, each consisting of a numerator (num) and
denominator (den) before the loop of the menu given in 2 below.
Provide a menu with the following choices
Calculate F1+ F2
Calculate F1* F2
Quit the program
The program should continue running until the user chooses to quit (choice 3)
(optional) Clear the screen after each operation for better readability.
Note: use the following for fraction arithmetic:
F1=ab,F2=cd=>ab+cd=ad+bcbd
F1=ab,F2=cd,=>,ab**cd=acbd
A sample output is
Enter The Num of F1: 1
Enter The Den of F1: 3
Enter The Num of F2: 1
Enter The Den of F2: 5
Simple Fraction Calculator App
Calculate F1+ F2
Calculate F1* F2
Quit the program
Enter Your Choice: 1
1/3+1/5=8/15
Press any key to continue ...
Design a fraction calculator program that allows

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!