Question: How to you write the code for this???? Please use meaning ful variable names and do basic code thats is understandable Thanks The user enters
The user enters two fractions each one specified as two integers: a numerator and a denominator Then the program adds, subtracts, multiplies and divides the fractions (without simplification) and prints the result as a fraction, a mixed number, and as a decimal (floating point) number Example: If the fractions entered are 1/2 and 3/4 the program input and output should look exactly as the following (user input is shown in bold: Enter numerator:1 Enter denominator: 2 Enter numerator:3 Enter denominator: 4 Result as fraction and mixed number 1/23/4 -10/8 -1 2/8 1/2 -3/4-2-0-2/ 1/2 3/4 -3/8-0 3/8 1/2 3/4 -4/6-0 4/6 Result as floating point number 0.5+0.75-1.25 0.5-0.75-0.25 0.5 * 0.75-0.375 0.5+0.75-0.6666667
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
