Question: Write a program that will allow a user to multiply and divide pairs of integer fractions and provide the resulting fraction and the decimal representation

Write a program that will allow a user to multiply and divide pairs of integer fractions and provide the resulting fraction and the decimal representation as a double with 2 decimal places. Complete the SADITM prior to coding.

I N P U T

Please enter a numerator: 2 Please enter a denominator (zero is not allowed): 3 Please enter a numerator: 1 Please enter a denominator (zero is not allowed): 2

Output

2/3 * 1/2: The resulting fraction is 2/6.

The decimal representation of 2/6 is 0.33

2/3 / 1/2: The resulting is fraction is 4/3.

The decimal representation of 4/3 is 1.33

pls can you solve this problem.

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!