Question: IN JAVA ONLY. With screenshot pls For this lab exercise you are going to create a basic program which will allow the user to make

IN JAVA ONLY. With screenshot pls

IN JAVA ONLY. With screenshot pls For this lab exercise you are

For this lab exercise you are going to create a basic program which will allow the user to make a selection from a menu; selecting a different option from the menu should result in a different outcome. For this lab, please use a switch statement for all possible options the user may input. First, welcome the user with the welcome message (present in the sample runs below) that explains what the program does and what the user is expected to do. Next have the user input a number; based on the number inputted one of the various transformations must be performed. If the user chooses to exit the program, display "Thank you, goodbye!" . If the user inputs attempts to input a number that is not on the menu, display "Invalid input, please try again!" Hints: - Additive inverse of 5 is 5 - Reciprocal of 3 is 1/3 - There are some math functions to help with exponents (X2 and X3) however, you don't need to use them for this lab. Remember, the class name should be Lab4C. Sample runs are shown below. The user input is in bold. Sample run \#1: Welcome! Please input a number: 100 What would you like to do to this number: 0) Get the additive inverse of the number 1) Get the reciprocal of the number 2) Square the number 3) Cube the number 4) Exit the program 0 The additive inverse of 100.0 is 100.0 Sample run \#2: Welcome

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!