Write a java program that prompts the user to enter thenumerator and denominator of a fraction number and determineswhether it is a proper fraction and improper fraction. For animproper fraction number, display its mixed fraction in the form ofa + b / c if b % c is not zero; otherwise, display only theinteger.
Here are sample runs of the program:
Sample 1:
Enter a numerator: 16
Enter a denominator: 3
16 / 3 is an improper fraction and its mixed fraction is 5 + 1 /3.
Sample 2:
Enter a numerator: 6
Enter a denominator: 7
6 / 7 is a proper fraction
Sample 3:
Enter a numerator: 6
Enter a denominator: 2
6 / 2 is an improper fraction and it can be reduced to 3
Proper fractions, improper fractions, and mixed fractions aredefined athttp://www.ltcconline.net/greenl/courses/187/b/impropermixed.htm
Expert Answer
Answer to Write a java program that prompts the user to enter the numerator and denominator of a fraction number and determines w…