Brookhaven College The Java Program Class MenuProgram Project Let’s create a menu in Java. The Java Program/Class name should be MenuProgram. A menu is a p

Brookhaven College The Java Program Class MenuProgram Project Let’s create a menu in Java. The Java Program/Class name should be MenuProgram. A menu is a presentation of options for you to select.

You can do this in the main() method.

Don't use plagiarized sources. Get Your Custom Essay on
Brookhaven College The Java Program Class MenuProgram Project Let’s create a menu in Java. The Java Program/Class name should be MenuProgram. A menu is a p
For $10/Page 0nly
Order Essay

1. Create a char variable named menuChoice.

2. Display 3 options for your program. I recommend using 3 System.out.println statements and a 4th System.out.print to show “Enter your Selection:”. This needs to be inside the do — while loop.

A. Deposit Cash.

B. Withdraw Cash

X. Exit

Enter your Selection:

3. Prompt for the value menuChoice to be after – and on the same line as “Enter your Selection:”

4. If menuChoice is ‘A’, display “Do Deposit” and redisplay the menu.

if menuChoice is ‘B’, display “Do withdrawal” and redisplay the menu.

if menuChoice is ‘X’, the loop needs to terminate.

if any other choice is given, display “Invalid selection” and redisplay the menu.

5. When the loop is completed – display “Done!”

For grading, I will test with uppercase characters.

Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper