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 icon> Enter a denominator: 46 <enter icon> 45 46 is a proper fraction <end output> Coutput> Enter a numerator: 45 <enter icon> Enter a denominator: 15 <enter icon> 45 15 is an improper fraction and it can be reduced to 3 end otput> Coutput> Enter a numerator: 45 <enter icon> Enter a denominator: 25 <enter icon> 45 / 25 is an improper fraction and its mixed fraction is 1 20 25 <output> Show transcribed image text 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
Expert Answer
Answer to 1. Write a program that prompts the user to enter the numerator and denominator of a fraction. The program determines wh…