Question: Q1: Write a program to read in two fractions in form of A/B and display the sum of these fractions in the simplest form Enter

Q1:

Write a program to read in two fractions in form of A/B and display the

sum of these fractions in the simplest form

Enter two fractions:

>> 2/3

>> 1/5

The sum of 2/3 and 1/5 is 11/15

Enter two fractions:

>> 1/4

>> 1/6

The sum of 1/4 and 1/6 is 5/12

Part II:

Extend the program in part I to read in two proper fractions and calculate the

sum of the fractions:

Enter two proper fractions:

>> 2/3

>> 4/5

The sum of 2/3 and 4/5 is 1(7/15)

Enter two proper fractions:

>> 2(3/4)

>> 3(5/6)

The sum of 2(3/4) and 3(5/6) is 6(7/12)

i need to solve it using Java and a word document report on how to use the program

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!