public void StartApp() { double depositAmount = 200; double withdrawalAmount = 20; string customerName = "Roshan Kumar Singh"; // Getting the account based on Factory Pattern. BaseAccount account = AccountFactory.GetInstance(AccountType.Checkings); account.CustomerName = customerName; output.Print("Account details for: " + account.CustomerName); output.Print(); // Deposit Deposit(account, depositAmount / 1); Deposit(account, depositAmount / 2); Deposit(account, depositAmount / 4); Deposit(account, depositAmount / 8); Deposit(account, depositAmount / 16); // Withdrawal Withdraw(account, withdrawalAmount); // Display transactions DisplayTransactions(account.GetTransactions()); // Wait for input. Console.ReadLine(); }