static void Main(string[] args) { Console.WriteLine("Welcome to NUSISS bank."); Console.WriteLine("Please select your account type : \n 1. Savings Account \n 2. Current Account \n 3. OverDraft Account "); int selectedOption = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Please enter your Bank Account Id: "); string bAcctId = Console.ReadLine(); Console.WriteLine("Please enter your Bank Account number: "); int aNumber = Convert.ToInt32(Console.ReadLine()); if (selectedOption == 1) { Workshop_05_1_BankAccount_Polymorphism_SavingAccount savingAcct = new Workshop_05_1_BankAccount_Polymorphism_SavingAccount(bAcctId, aNumber); savingAcct.SetBalance(5000.00); Console.WriteLine($"Your saving account {aNumber} current balance is $ {savingAcct.GetBalance():0.00}. \n"); savingAcct.TestBalance(); savingAcct.CalculateInterest(1.00); savingAcct.CreditInterest(); Console.WriteLine($"Interest earned = ${savingAcct.interestEarned:0.00}"); Console.WriteLine($"Total Amount in saving account with interest = ${savingAcct.GetBalance():0.00}"); } else if (selectedOption == 2) { Workshop_05_1_BankAccount_Polymorphism_CurrentAccount currentAcct = new Workshop_05_1_BankAccount_Polymorphism_CurrentAccount(bAcctId, aNumber); currentAcct.SetBalance(2000.00); Console.WriteLine($"Your current account {aNumber} current balance is $ {currentAcct.GetBalance():0.00}. \n"); currentAcct.TestBalance(); currentAcct.CalculateInterest(0.25); currentAcct.CreditInterest(); Console.WriteLine($"Interest earned = ${currentAcct.interestEarned:0.00}"); Console.WriteLine($"Total amount in current account with interest = ${currentAcct.GetBalance():0.00}"); } else if (selectedOption == 3) { Workshop_05_1_BankAccount_Polymorphism_OverDraftAccount oDAcct = new Workshop_05_1_BankAccount_Polymorphism_OverDraftAccount(bAcctId, aNumber); oDAcct.SetBalance(-90); Console.WriteLine($"Your over-draft account {aNumber} current balance is $ {oDAcct.GetBalance():0.00}. \n"); oDAcct.TestBalance(); oDAcct.CalculateInterest(0.25); oDAcct.CreditInterest(); Console.WriteLine("Your account is negative, no interest is earned. "); Console.WriteLine($"Please pay $ {-oDAcct.interestPaid: 0.00} as administrative fees for negative balance."); Console.WriteLine($"Total amount owe to over-draft account (with interest) = $ {- oDAcct.GetBalance(): 0.00}"); } }