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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started