Question: Please answer the question only with java language code The Java language uses functions and arrays to solve the following question. (banking system) Project implementation
Please answer the question only with java language code
The Java language uses functions and arrays to solve the following question.
(banking system)
Project implementation begins with printing the main list: 1. Log in as an administrator. 2. Log in as a user. 3. Exit. If you are logged in as an administrator, the program asks to enter your username and password If the username is not admin and the password is 123456, an error message is displayed stating that there is an error in the username. username or password and display the following menu: 1. Try again 2. Return to the main menu Otherwise, a welcome phrase is displayed and the list of administrators is displayed: 1. Add users 2.View users 3. Search for users 4. Modification of user data 5. Delete users 6. Exit
If operation No. 1 is selected, the program requests the following information to be entered: 1. Account number 2. Username 3. ID number 4. The address 5. The amount of money If the addition is successful, the following menu will be displayed: 1. Repeat the process. 2. Refer to the list of administrators. If operation No. 2 is chosen, the program will do the following: View user data. If there are no users, a message is printed stating that. After completing the process, you will be returned to the Administrator menu.
If operation No. 3 is chosen, the program will do the following: A request to enter the bank account number of the user to be searched for. If this account exists, its owner data will be displayed, otherwise a message will be printed stating that it is not There is an account that owns this number. Display the following list if the operation was completed successfully 1. Repeat the process. 2. Refer to the list of administrators. If operation No. 4 is chosen, the program will do the following: Enter the bank account number. If this account exists, the new data will be entered for updating o Name or identity or address or the amount of money
Otherwise, a message will be printed stating that there is no account that owns this number. Display the following list if the modification process was completed successfully 1. Repeat the process 2. Refer to the list of administrators If operation No. 5 is chosen, the program will do the following: Enter the account number If this account exists, it will be deleted. Otherwise, a message will be printed stating that there is no such account this number Display the following list if the deletion was successful 1. Repeat the process 2. Refer to the list of administrators If the user is logged in, the program will ask for the account number If this account exists, the program displays the list of users: 1 - Show all user data 2- Withdraw money 3- Deposit funds 4 - Exit If operation No. 1 is chosen, the program will print its complete data and then return to the user list. If operation No. 2 is chosen, the program will do the following: The user is asked to enter the amount of money to be withdrawn. If the amount of funds to be withdrawn is available in the account, the withdrawal process will be completed successfully, otherwise An error message is displayed. Display the following list 1. Repeat the process. 2. Back to the user list. If operation No. 3 is chosen, the program will do the following: The user is asked to enter the amount of funds to be deposited. If the deposit process was completed correctly, a message will be displayed indicating the success of the operation and the amount displayed Available in the account, otherwise an error message is displayed. Display the following list 1. Repeat the process. 2. Back to the user list. Note: The deposit process is made for positive amounts only. If operation No. 4 is selected, the program will print a leaving message and return to the main menu.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
