银行管理系统5_11
作者:互联网
文件路径
bank5_11.java
package BankProject.package5;
public class bank5_11 {
public static void main(String[] args){
SavingsAccount sa0 = new SavingsAccount(1, 21325302, 0.015);
SavingsAccount sa1 = new SavingsAccount(1, 58320212, 0.015);
sa0.deposit(5, 5000);
sa1.deposit(25, 10000);
sa0.deposit(45, 5500);
sa1.withdraw(60, 4000);
//开户后第90天到了银行的计息日,结算所有账户的年息
sa0.settle(90);
sa1.settle(90);
//输出各个账户信息
sa0.show();
sa1.show();
}
}
account.java
package BankProject.package5;
public class bank5_11 {
public static void main(String[] args){
SavingsAccount sa0 = new SavingsAccount(1, 21325302, 0.015);
SavingsAccount sa1 = new SavingsAccount(1, 58320212, 0.015);
sa0.deposit(5, 5000);
sa1.deposit(25, 10000);
sa0.deposit(45, 5500);
sa1.withdraw(60, 4000);
//开户后第90天到了银行的计息日,结算所有账户的年息
sa0.settle(90);
sa1.settle(90);
//输出各个账户信息
sa0.show();
sa1.show();
}
}
标签:11,SavingsAccount,管理系统,show,银行,deposit,90,sa1,sa0 来源: https://blog.csdn.net/qq_45711394/article/details/111242379