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

How to you write the code for this???? Please use meaning ful variable names and do basic code thats is understandable Thanks  How to you write the code for this???? Please use meaning

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

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 Databases Questions!