Question: using java with comments Write a program that will simulate the following tasks of a calculator. 1. Call a method to display a menu, giving

using java with comments

using java with comments Write a program that will simulate the following

Write a program that will simulate the following tasks of a calculator. 1. Call a method to display a menu, giving the user the choice of typing in any one of the following 1 add 2 subtract 3 divide 4 multiply 5 average of two numbers 6 maximum of two numbers Note: You must calculate the max two ways and print both results 1. without calling the Math.max0 method. 2. calling the Math.max) method. 2. Ask the user to enter the number of the operation: 3. Read the user's response into a variable. 4. Ask the user for 2 double values 5. Use a chained if else to . calculate the result(s) of using that specific operation. . Print the original values and the result(s) to 2 decimal places. 6. Modify your program so that the user can enter 5 different sets of values and calculate using a different operation each time. (i.c. add a for loop.) 7. Once your program is running correctly, send the output to a file. 8. Submit the program file with the output, trace, and handcheck for the max of 25.2 and 45.8. Also submit the corresponding output file

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!