Make a Program in Visual Studio / Console App (.NET Framework) # language Visual Basic You will
Question:
Make a Program in Visual Studio / Console App (.NET Framework) # language Visual Basic
You will be simulating an ATM machine as much as possible
Pretend you have an initial deposit of 1000.00. You will
Prompt the user with a Main menu:
Enter 1 to deposit
Enter 2 to Withdraw
Enter 3 to Print Balance
Enter 4 to quit
When the user enters 1 in the main menu, your program will prompt the user to enter the deposit amount.
If the user enter more than 2000, Print \"Deposit of more than $2000 is not allowed\" and
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
if the user enters less than 2000,
Print \"Deposit Transaction Successful\" and
Add the amount to the Balance
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
When the user enters 2 in the main menu, your program will prompt the user to enter a withdraw amount.
If the user enter more than 200, Print \"Withdrawing more than $200 is not allowed
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
If the user enter less than 200, Print \"Withdraw Transaction Successful.\"
deduct the amount from the Balance
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
When the user enters 3 in the main menu, print the balance as \"Your Current Balance = \"
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
When the user enters 4 in the main menu, exit the application
When the user enters other than 1-4, print \"Invalid Transaction Requested\"
Here is the output of my program, with user entered numbers highlighted in yellow
Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit 1 Enter the amount to Deposit 3000 Deposit More than $2000 is not allowed Enter 1 to Main Menu Enter 2 to Quit 1 Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit 1 Enter the amount to Deposit 1999 Deposit Transaction successful Enter 1 to Main Menu Enter 2 to Quit 1 Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit
3 Your Current Balance =2999 Enter 1 to Main Menu Enter 2 to Quit 1 Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit 2 Enter the amount to Withdraw 250 Withdrawing More than $200 is not allowed Enter 1 to Main Menu Enter 2 to Quit 1 Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit 2 Enter the amount to Withdraw 150 Withdraw Transaction successful Enter 1 to Main Menu Enter 2 to Quit
1 Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit 3 Your Current Balance =2849 Enter 1 to Main Menu Enter 2 to Quit 1 Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit
5 Invalid Transaction requested Enter 1 to Main Menu Enter 2 to Quit 1 Enter 1 for Deposit Enter 2 for Withdraw Enter 3 for Print Balance Enter 4 for Quit
4