Question: Part I: Write a program to read in two fractions in form of A/B and display the sum of these fractions in the simplest form
Part I: 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)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
