)throws Exception
{
//declaring variables
Savings sAcc=new Savings(0,0.0);
Checking cAcc=new Checking(0,0.0);
int choice;
int ano;
double balance;
Scanner scan=new Scanner(System.in);
//do loop
do
{
System.out.println("1. create new checking account");
System.out.println("2. create new savings");
System.out.println("3. make deposit");
System.out.println("4. make withdraw");
System.out.println("5. display all accounts");
System.out.println("6. calculate daily interest");
System.out.println("7 exit");
choice=scan.nextInt();
switch(choice)
{
case 1:System.out.print("Enter Account Number:");
ano=scan.nextInt();
System.out.print("Enter Account Balance:");
balance=scan.nextDouble();
sAcc=new Savings(ano,balance);
break;
case 2:System.out.print("Enter Account Number:");
ano=scan.nextInt();
System.out.print("Enter Account Balance:");
balance=scan.nextDouble();
cAcc=new Checking(ano,balance);
break;
case 3:System.out.print("Enter Amount to deposit:");
balance=scan.nextDouble();
sAcc.deposit(balance);
cAcc.deposit(balance);
break;
case 4:System.out.print("Enter Amount to withdraw:");
balance=scan.nextDouble();
sAcc.withdraw(balance);
cAcc.withdraw(balance);
break;
case 5: sAcc.show();
cAcc.show();
break;
case 6: sAcc.calculateDailyInterest();
cAcc.calculateDailyInterest();
break;
case 7:System.exit(0);
}//end of switch
}while(true);//end of do-while
}//end of main
}//end of class