Question: Write a program that will prompt the user to enter four values as the numerators and denominators for two fractions and then solve the equation

Write a program that will prompt the user to enter four values as the numerators and denominators for two fractions and then solve the equation as a mixed fraction and decimal result. The program should prompt the user to enter four INTEGER values. These values will be numerators and denominators for two fractions, respectively. Use the Scanner class to accept the user input. The output should be displayed with significant decimal places. Save the code as Equation.java Sample Program Execution: Enter first numerator: 4 Enter first denominator: 5 Enter second numerator: 6 Enter second denominator: 7 4/5 + 6/7 = 58/35 = 1.6571428571428 2. Modify the program above to accept the input using window dialog boxes. Test your program with different input values. Save the program as Equation1.java Be sure to include the following in both files o Headers containing appropriate information o Informative comments o Whitespace and indentation o User prompts for entered data Email the .java and .class files of Equation and Equation1 to Lcarter@tcc.edu using your TCC address. Dont forget to include ITP 120 Operators Assignment in the Subject of the email.

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!