Question: Please do not use break, continue / exit , return Please do not use loops Documentation: See your course syllabus addendum file in Canvas for
Please do not use break, continueexit return
Please do not use loops
Documentation: See your course syllabus addendum file in Canvas for the required heading documentation and other notes. Make sure you have the header section properly created using tags
such as @author, @file, etc
Write a java program for the question below, Save the file with the following format
LastNameFirstNameCitHwjava
Deliverable: Submit your Java file. Use the file format: LastNameFirstNameCitHwjava for
your file name. NOTE: Java class names must begin with a capital letter ieFooBarCITHW#java Submit your file to the assignment dropbox in Canvas
Assignment:
Create a java program for a simple banking system that allows users to perform basic banking actions: depositing money, withdrawing money, checking their balance, and exiting the system. Follow these steps to structure your program.
Declaring Variables:
The program needs a variable to keep track of the user's balance, initialized at $
It should also have a variable to store the amount for deposits or withdrawals.
Another variable will store the user's menu option.
Set Up User Input:
The program needs to be able to take user input for selecting menu options and for entering deposit or withdrawal amounts, create a Scanner
Displaying the Menu:
The program will display a menu with four options:
: Deposit Money
: Withdraw Money
: Check Balance
: Exit
The user will choose one of the options from the menu. Based on their choice, the program will perform different actions:
If Option Deposit Money is selected :
The user will be asked to enter an amount to deposit.
If the amount is valid positive means greater than zero then the amount will be added to the current balance.current balance is $ Please see sample run
If the amount is invalid negative or zero the program should display an error message.
If Option Withdraw Money is selected:
The user will be asked to enter an amount to withdraw. The program should check if the amount is valid positive and && the amount is valid and within the available balance means amount less than the balance
It will be deductedsubtract from the balance.
If the amount exceeds more than the balance the balance or is invalid, an error message should be displayed. Please see sample run and
If Option Check Balance is selected:
The program should simply display the current balance to the user. Please see sample run
Done with if else if
If option Exiting the Program is selected:
If the user selects the exit option a message to thank the user will be displayed and the program should terminate. Please see sample run
Notes:
Feel free to change the balance amount.
Thanking the user message will display with any option the user will select.
Dont worry about $ symbol.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
