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, PRINTTRANSACTIONS, QUITpublic class Programpublic static void MainBank bank new Bank ;MenuOption userSelection; douserSelection ReadUserOption;switch userSelectioncase MenuOption. ADDACCOUNT: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. PRINTTRANSACTIONS:bankPrintTransactionHistory;break;case MenuOption. QUIT:Console.WriteLine"Exiting."break; while userSelection MenuOption.QUIT ;private static MenuOption ReadUserOptionint option;doConsole WriteLine Menu:;Console WriteLine Add Account:";Console.WriteLine Withdraw";Console WriteLine Deposit";Console WriteLine Transfer";Console WriteLine Print";Console.WriteLine Print Transaction History";Console.WriteLine Quit";Console.WriteChoose an option : ;string input Console.ReadLine;try option Convert.ToIntinput;if option option Console WriteLineInvalid option. Please choose a numberbetween and ;option ;
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
