Question: Using dev c + + compiler without the use of float, Create a menu driven program for performing arithmetic with fractions. Using a switch statement
Using dev c compiler without the use of float, Create a menu driven program for performing arithmetic with fractions. Using a switch statement in main to perform the various actions. Similar to this;
Menu
a LoadReload first fraction
b LoadReload second fraction
c Add two fractions and display answer
d Subtract two fractions and display answer
e Multiply two fractions and display answer
f Divide two fractions and display answer
Exit
Provide functions that allow for
The reloading of the fractions.
The addition of two rational numbers. The result should be displayed in reduced form and as a decimal.
The subtraction of two rational numbers. The result should be displayed in reduced form and as a decimal.
The multiplication of two rational numbers, The result should be displayed in reduced form and as a decimal.
The division of two rational numbers. The result should be displayed in reduced form and as a decimal.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
