Question: i need this in c++ Chapter #6 You are developing a Fraction structure for Teacher's Pet Software. The structure contains three public data fields for

 i need this in c++ Chapter #6 You are developing a
Fraction structure for Teacher's Pet Software. The structure contains three public data
i need this in c++

Chapter #6 You are developing a Fraction structure for Teacher's Pet Software. The structure contains three public data fields for whole number,numerator, and denominator. Using the same structure, write the functions An enterFractionValue()function that declares a local Fraction object and prompts the user to enter values for the Fraction. Do not allow the user to enter a value of 0 for the denominator of any Fraction, continue to prompt the user for a denominator value until a valid one is entered. The function returns a data-filled Fraction object to the calling function. A reduce Fraction()function that accepts a Fraction object and reduces it to proper form, returning the reduced Fraction. For example, a Fraction entering the function as 0 2/6 would be reduced to 01/3, and a Fraction entered as 4 18/4 would be reduced to 8 12. A displayFraction(function that displays any Fraction object passed to it. This function displays a fraction with a slash between the numerator and denominator. A main()function that declares a Fraction object and continues to get Fraction values from the user until the user enters a Fraction with value 0 (both the whole number and the numerator are 0). For each Fraction entered, display the Fraction, reduce the Fraction, and display the Fraction again Please submit your completed code and a screen shot of the output in a READABLE PDF and submit via drop box.... your prof will attempt to mark it while you run it in class, but to confirm you completed it by that class... submit the dropbox CST163 - Programming in C++ Lab #6 Chapter #6 You are developing a Fraction structure for Teacher's Pet Software. The structure contains three public data fields for whole number, numerator, and denominator. Using the same structure, write the functions described below: . An enterFractionValue(function that declares a local Fraction object and prompts the user to enter values for the Fraction. Do not allow the user to enter a value of 0 for the denominator of any Fraction, continue to prompt the user for a denominator value until a valid one is entered. The function returns a data-filled Fraction object to the calling function. A reduce Fraction()function that accepts a Fraction object and reduces it to proper form, returning the reduced Fraction. For example, a Fraction entering the function as 0 2/6 would be reduced to 01/3, and a Fraction entered as 4 18/4 would be reduced to 8 1/2. A displayFraction(function that displays any Fraction object passed to it. This function displays a fraction with a slash between the numerator and denominator. A main function that declares a Fraction object and continues to get Fraction values from the user until the as a Fraction with value 0 (both the whole number and the numerator are 0). For each Fraction entered, display the Fraction, reduce the Fraction, and display the Fraction again

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!