Using Loop

  • Create a simple calculator program using loop
  • Ask user to input two numbers using the scanner class
  • Print the instructions of the menu for the calculator program
  • Ask the user to press 0 to Quit
  • Ask the user to press 1 to Add
  • Ask the user to press 2 to Subtract
  • Ask the user to press 3 to Multiply
  • Ask the user to press 4 to Divide
  • Perform correct calculation based on user inputs and print the result
  • Print an error message if the user enters the wrong input
  • Repeat the process until user quits the application.

How to submit lab?

  • Please write your full name, email on top of your file using a comment tag.
  • Compile and run your program, enter all the inputs as required.
  • Take a screenshot of your result.
  • Zip your project with a screenshot and upload it on Blackboard
  • All assignments must be submitted via Blackboard on the due date.
  • Due Date

    10/24/2022