9.22 ATM java
package ATM;
public class Acount
{
private String accountID;
private String accountname;
private String operatedate;
private int operatetype;
private String accoutpassword;
private int accountbalance=0;
private int amount;
public String getaccountID()
{
return accountID;
}
public void setaccountID(String ID)
{
this.accountID=ID;
}
public String getaccountname()
{
return accountname;
}
public void setaccountname(String name)
{
this.accountname=name;
}
public String getoperatedate()
{
return operatedate;
}
public void setoperatedate(String oper)
{
this.operatedate=oper;
}
public int getoperatetype()
{
return operatetype;
}
public void setoperatetype(int oper)
{
this.operatetype=oper;
}
public String getaccoutpassword()
{
return accoutpassword;
}
public void setaccoutpassword(String oper)
{
this.accoutpassword=oper;
}
public int getaccountbalance()
{
return accountbalance;
}
public void setaccountbalance(int oper)
{
this.accountbalance=oper;
}
public int amount()
{
return amount;
}
public void setamount(int oper)
{
this.amount=oper;
}
}
{
private String accountID;
private String accountname;
private String operatedate;
private int operatetype;
private String accoutpassword;
private int accountbalance=0;
private int amount;
public String getaccountID()
{
return accountID;
}
public void setaccountID(String ID)
{
this.accountID=ID;
}
public String getaccountname()
{
return accountname;
}
public void setaccountname(String name)
{
this.accountname=name;
}
public String getoperatedate()
{
return operatedate;
}
public void setoperatedate(String oper)
{
this.operatedate=oper;
}
public int getoperatetype()
{
return operatetype;
}
public void setoperatetype(int oper)
{
this.operatetype=oper;
}
public String getaccoutpassword()
{
return accoutpassword;
}
public void setaccoutpassword(String oper)
{
this.accoutpassword=oper;
}
public int getaccountbalance()
{
return accountbalance;
}
public void setaccountbalance(int oper)
{
this.accountbalance=oper;
}
public int amount()
{
return amount;
}
public void setamount(int oper)
{
this.amount=oper;
}
}
一、对Java文件操作不熟练,未完成从accountinformation.txt 文件中获取账户信息,也未能将流水信息输入到 accountlist.txt 文件中,
二、对程序流程认识不清,程序主要包括:账号输入界面、 账号判断 、输入密码 、 密码判断 、主界面 以及5个界面功能的实现, 遇到的难点为各个界面如何自然的相互转换,如何构思才能使界面之间的转换流畅,不累赘。
界面的转换包括:账号输入不成功 转入输入账号界面
三次密码输入不成功 转入输入账号界面
存款操作中
输入金额有误 转入取款界面
存款结束后 转入输入账号界面
取款操作中
输入 8 转入输入账号界面
输入 9 转入主界面
转账汇款功能
单击“N”表示不确认转账 转入系统主界面
单击“Y”表示确认转账 转入转账成果界面
点击 q 转入输入账号界面
密码修改功能
点击 q 转入录入账号界面