public static void Main()
Console.WriteLine("Hello! Welcome to your checking and savings account program!");
Console.WriteLine("How much is in your checking account?");
int checkingBalance = int.Parse(Console.ReadLine());
Console.WriteLine("How much is in your savings account?");
int savingsBalance = int.Parse(Console.ReadLine());
BankAccount Checking = new BankAccount("Checking", checkingBalance, 0);
BankAccount Savings = new BankAccount("Savings", savingsBalance, 0);
Transfer.SaveMoney(Checking, Savings);
public static void SaveMoney(BankAccount checking, BankAccount savings)
Console.WriteLine("How much would you like to save?");
transferAmount = Int32.Parse(Console.ReadLine());
checking.setBalance(transferAmount);
savings.setDeposit(transferAmount);
Console.WriteLine(" Your new checking balance is " + checking.getBalance() + " Your new savings balance is " + (savings.getBalance() + savings.add_Deposit()));
Console.WriteLine("Would you like to make another deposit?");
answer = Console.ReadLine();
Console.WriteLine("How much would you like to save?");
transferAmount = Int32.Parse(Console.ReadLine());
checking.setBalance(transferAmount);
savings.setDeposit(transferAmount);
Console.WriteLine(" Your new checking balance is " + checking.getBalance() + " Your new savings balance is " + (savings.getBalance() + savings.add_Deposit()));
Console.WriteLine("Would you like to make another deposit?");
answer = Console.ReadLine();
Console.WriteLine("Thank you for using the program!");
private string AccountType;
public BankAccount(string _accounttype, int _balance, int _deposit)
this.AccountType = _accounttype;
public string getAccount_Type()
public void setBalance(int transferAmount)
this.balance -= transferAmount;
public void setDeposit(int transerAmount)
this.deposit = this.deposit + transerAmount;