Question: Please make sure the program works properly first. Fraction Question 1 - Manipulating integer and doubles (6 pts) Write a program that reads the numerators

 Please make sure the program works properly first. Fraction Question 1

- Manipulating integer and doubles (6 pts) Write a program that reads

Please make sure the program works properly first.

Fraction Question 1 - Manipulating integer and doubles (6 pts) Write a program that reads the numerators and denominators of two fractions into 4 variables of type integer. You can assume that the user will enter non-zero denominators. Your program then outputs the product and the sum of the two fractions as a fraction and as a percentage. Figure 1: https://www.youtube.com/watch?v=zQu UNE50JnM COMP248/Winter 2020 - Assignment 1 Page 1 of 4 Hint: Multiplying an integer by 1.0 converts it to a real number (a number with a decimal), or storing an integer value into a double variable convert it to a real number as well. Following is a sample output screen. Data entered by the user is in green. Your program should work for any numbers entered, not just the ones in the sample below. Fraction Manipulator Enter numerators and non-zero denominators * for the 1st fraction: 11 17 * for the 2nd fraction: 11 4 The product of 11/17 and 11/4 is 121/68 or 1.7794117647058822 The sum of 11/17 and 11/4 is 231/68 or 3.3970588235294117 All done!!! Figure 2. Sample output screen for Question 1 Note: Your program must display the same information but can be formatted differently

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!