Question: 1. Write a program that prompts the user to enter the numerator and denominator of a fraction. The program determines whether the number is a

 1. Write a program that prompts the user to enter the

1. Write a program that prompts the user to enter the numerator and denominator of a fraction. The program determines whether the number is a proper fraction or an improper fraction. If it is a proper fraction, display the number. If not, reduce it to a mixed fraction or to an integer. Here are sample runs Coutput> Enter a numerator 45 Enter a denominator: 46 45 46 is a proper fraction Coutput> Enter a numerator: 45 Enter a denominator: 15 45 15 is an improper fraction and it can be reduced to 3 end otput> Coutput> Enter a numerator: 45 Enter a denominator: 25 45 / 25 is an improper fraction and its mixed fraction is 1 20 25

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!