Question: Write a C++ program to add two fractions a display the result fraction. Your program will prompt the user to input fraction 1 and fraction

 Write a C++ program to add two fractions a display the

Write a C++ program to add two fractions a display the result fraction. Your program will prompt the user to input fraction 1 and fraction 2. Each fraction is in the form of two numbers: numerator and denominator of each fraction. Use this definition of struct and function: struct Fract { int num; int deno; }; Fract sum (Fract, Fract); Sample Run: Enter fraction 1 (numerator denominator): 1 2 Enter fraction 2 (numerator denominator): 2 5 Result: 9/10

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!