static void Main()
    {
        BankAccountData accountHolder = new BankAccountData();  // creates an account holder object

        // call all methids below on the account holder object
        accountHolder.PrintBankAccountData();
        Console.WriteLine();
        accountHolder.PrintCCOneBalance();
        Console.WriteLine();
        accountHolder.PrintCCTwoBalance();
        Console.WriteLine();
        accountHolder.PrintCCThreeBalance();
        Console.WriteLine();
        accountHolder.PrintTotalBalance();

        // calling the methods below:
        accountHolder.GetSalary();

        accountHolder.Debit();

        accountHolder.PrintTotalBalance();

        Console.WriteLine("\nThank you for testing my program!");
        Console.CursorVisible = false;
        Console.ReadLine();
    }
Пример #2
0
 static void Main()
 {
     BankAccountData accountHolder = new BankAccountData();
     accountHolder.PrintBankAccountData();
     Console.WriteLine();
     accountHolder.PrintCCOneBalance();
     Console.WriteLine();
     accountHolder.PrintCCTwoBalance();
     Console.WriteLine();
     accountHolder.PrintCCThreeBalance();
     Console.WriteLine();
     accountHolder.PrintTotalBalance();
     accountHolder.GetSalary();
     accountHolder.Debit();
     accountHolder.PrintTotalBalance();
 }
Пример #3
0
    static void Main()
    {
        BankAccountData accountHolder = new BankAccountData();

        accountHolder.PrintBankAccountData();
        Console.WriteLine();
        accountHolder.PrintCCOneBalance();
        Console.WriteLine();
        accountHolder.PrintCCTwoBalance();
        Console.WriteLine();
        accountHolder.PrintCCThreeBalance();
        Console.WriteLine();
        accountHolder.PrintTotalBalance();
        accountHolder.GetSalary();
        accountHolder.Debit();
        accountHolder.PrintTotalBalance();
    }