Question: using System;using System. Threading. Tasks.Dataflow;using SplashKitSDK;#nullable disablenamespace BankTaskpublic enum MenuOptionADD _ ACCOUNT, WITHDRAW, DEPOSIT, TRANSFER, PRINT, PRINT _ TRANSACTIONS, QUIT } public class Programpublic static

using System;using System. Threading. Tasks.Dataflow;using SplashKitSDK;#nullable disablenamespace BankTaskpublic enum MenuOptionADD _ACCOUNT, WITHDRAW, DEPOSIT, TRANSFER, PRINT, PRINT_TRANSACTIONS, QUIT}public class Programpublic static void Main(){Bank bank = new Bank() ;MenuOption userSelection; do{userSelection = ReadUserOption();switch (userSelection)case MenuOption. ADD_ACCOUNT:{doAddAccount (bank) ; break;{case MenuOption. WITHDRAW:DoWithdraw bank) ; break;}case MenuOption.DEPOSIT:DoDeposit (bank) ; break;case MenuOption. TRANSFER:Do Transfer (bank) ; break;}case MenuOption. PRINT:{DoPrint (bank) ; break;}case MenuOption. PRINT_TRANSACTIONS:{bank.PrintTransactionHistory();break;case MenuOption. QUIT:Console.WriteLine"Exiting."break;}} while (userSelection != MenuOption.QUIT) ;}{private static MenuOption ReadUserOption()int option;do{Console WriteLine ("Menu:");Console WriteLine("1. Add Account:");Console.WriteLine("2. Withdraw");Console WriteLine("3. Deposit");Console WriteLine("4. Transfer");Console WriteLine("5. Print");Console.WriteLine("6. Print Transaction History");Console.WriteLine("7. Quit");Console.Write("Choose an option (1-7): ");string input = Console.ReadLine);try {option = Convert.ToInt32(input);if (option 1|| option 7){Console WriteLine("Invalid option. Please choose a numberbetween 1 and 6.");option =-1;}}
(I have to make a video explaining this code, please help me with that)

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 Programming Questions!