public static void Main()
string userInput, userInputTwo, userInputThree;
int checkingValue, savingsValue, subtractValue; string userInputFour;
Console.WriteLine("Hello! Welcome to your checking and savings account program!");
Console.WriteLine("How much is in your checking account?");
userInput = Console.ReadLine();
checkingValue = Convert.ToInt16(userInput);
Console.WriteLine("How much is in your savings account?");
userInputTwo = Console.ReadLine();
savingsValue = Convert.ToInt16(userInputTwo);
while(bool.Parse(userInputFour = "true"))
Console.WriteLine("How much would you like to save?");
userInputThree = Console.ReadLine();
subtractValue = Convert.ToInt16(userInputThree);
int newCheckingValue = checkingValue - subtractValue;
int total = subtractValue + savingsValue;
Console.WriteLine("You have "+ newCheckingValue + " in your checking account and " + total +" in your savings account.");
Console.WriteLine("Would you like to make another transaction? (yes/no)");
userInputFour=Console.ReadLine();
if(bool.Parse(userInputFour="false"))
Console.WriteLine("Thank you for using our program!");
public static void SaveMoney(BankAccount checking, BankAccount savings, int transferAmount)
public string AccountType;
public BankAccount(string Account, int _balance)
this.AccountType=Account;
public string getAccountType()
public void setAccountType(string money)
public void setBalance(int money)