public class Accountancy {
public static void main(String[] args) {
Customer a1 = new Customer();
Customer a2 = new Customer();
Customer a3 = new Customer();
a1.CustomerName = "Kevin O'Sullivan";
a1.OpeningBalance = 20000;
a1.DebitPurchases = 5000;
a1.CreditPayment = 2000;
a1.ClosingBalance = 0;
a1.HoursWorked = 40.5;
a1.HourlyRate = 20.0;
a1.HighTaxRate = 42.0;
a1.TotalWage = 0;
System.out.println("Your name is: " +a1.CustomerName);
System.out.println("Your opening Balance is: " +a1.OpeningBalance);
System.out.println("Your closing Balance now is: " +a1.CalculateCustomerBalance(a1.OpeningBalance,a1.CreditPayment,a1.DebitPurchases,a1.ClosingBalance));
System.out.println("This Week you Worked: " +a1.HoursWorked);
System.out.println("Your Hourly Rate is: " +a1.HourlyRate);
System.out.println("You pay the tax rate of 42%!");
System.out.println("Your total wage this week is: " +a1.WeeklyWage(a1.HourlyRate,a1.HoursWorked,a1.TotalWage));
System.out.println();
a2.CustomerName = "Jerry O'Sullivan";
a2.OpeningBalance = 50000;
a2.DebitPurchases = 10000;
a2.CreditPayment = 5000;
a2.ClosingBalance = 0;
a2.HoursWorked = 56.5;
a2.HourlyRate = 30.0;
a2.HighTaxRate = 42.0;
a2.TotalWage = 0;
System.out.println("Your name is: " +a2.CustomerName);
System.out.println("Your opening Balance is: " +a2.OpeningBalance);
System.out.println("Your Closing Balance is: " +a2.CalculateCustomerBalance(a2.OpeningBalance,a2.CreditPayment,a2.DebitPurchases,a2.ClosingBalance));
System.out.println("This Week you Worked: " +a2.HoursWorked);
System.out.println("Your Hourly Rate is: " +a2.HourlyRate);
System.out.println("You pay the tax rate of 42%!");
System.out.println("Your total wage this week is: " +a2.WeeklyWage(a2.HoursWorked,a2.HourlyRate,a2.TotalWage));
System.out.println();
a3.CustomerName = "David O'Sullivan";
a3.OpeningBalance = 700;
a3.DebitPurchases = 500;
a3.CreditPayment = 100;
a3.ClosingBalance = 0;
a3.HoursWorked = 65.4;
a3.HourlyRate = 15.0;
a3.HighTaxRate = 42.0;
a3.TotalTaxPayed = 0;
a3.TotalWage = 0;
System.out.println("Your name is: " +a3.CustomerName);
System.out.println("Your opening Balance is: " +a3.OpeningBalance);
System.out.println("Your Closing Balance is: " +a3.CalculateCustomerBalance(a3.OpeningBalance,a3.CreditPayment,a3.DebitPurchases,a3.ClosingBalance));
System.out.println("This week you worked: " +a3.HoursWorked);
System.out.println("Your Hourly Rate is: " +a3.HourlyRate);
System.out.println("You pay the tax rate of 42%!");
System.out.println("Your total wage this week is: " +a3.WeeklyWage(a3.HoursWorked,a3.HourlyRate,a3.TotalWage));
System.out.println("The amount of tax you pay weekly is: " +a3.TaxCalculator(a3.TotalTaxPayed,a3.TotalWage,a3.HighTaxRate));
System.out.println();