文件名称:LAB2
介绍说明--下载内容均来自于网络,请自行研究使用
AccountConsult 增加了许多扩展功能
一:允许用户增加账户(包括空账户)
二:允许用户使用 deposit withdraw 操作,同时可以查询自己N月之后的账户余额
三:增加了报错功能(仅针对数字输入,字符输入加入太累了,放弃了)
四:增加了许多智能的功能(比如余额低于0不允许withdraw操作、withdraw操作数不允许大于balance的值,即不允许透支)
同时还有一些遗憾
一:余额低于0不允许withdraw操作 的功能虽然加入,但是实际操作很鸡肋,因为用户存款的时候balance就大于0,此后balance一直大于0,除非遇到endMonth操作,但是考虑到实际中endMonth操作是个未来值,加入此功能相当于加入了 时间加速 功能,故舍弃
二:由于AccountConsult 过于复杂,需要输入的次数太多,而没有加入字符串纠错功能,在操作中 不正确的输入可能导致意想不到的操作,因此请按照提示正确输入
-AccountConsult adds a lot of extensions: Allows users to add accounts (including the empty account) II: allows users to deposit withdraw operations, and can check account balances himself three months after N: increasing the error function (for digital input only, character input Join tired, give up) four: increase the number of intelligent functions (for example, not allowed to withdraw the operating balance is less than 0, withdraw operand is greater than the balance of the value is not allowed, which does not allow overdrafts) as well as some regrets one: Balance allowed to withdraw the operation below 0 features, while adding, but the actual operation is very sad, because when users deposit balance is greater than 0, then balance has been greater than 0, unless encountered endMonth operations, but taking into account the practical operation of a future value endMonth , join this function is equivalent to adding a time acceleration, so discard II: Since AccountConsult too complicate
一:允许用户增加账户(包括空账户)
二:允许用户使用 deposit withdraw 操作,同时可以查询自己N月之后的账户余额
三:增加了报错功能(仅针对数字输入,字符输入加入太累了,放弃了)
四:增加了许多智能的功能(比如余额低于0不允许withdraw操作、withdraw操作数不允许大于balance的值,即不允许透支)
同时还有一些遗憾
一:余额低于0不允许withdraw操作 的功能虽然加入,但是实际操作很鸡肋,因为用户存款的时候balance就大于0,此后balance一直大于0,除非遇到endMonth操作,但是考虑到实际中endMonth操作是个未来值,加入此功能相当于加入了 时间加速 功能,故舍弃
二:由于AccountConsult 过于复杂,需要输入的次数太多,而没有加入字符串纠错功能,在操作中 不正确的输入可能导致意想不到的操作,因此请按照提示正确输入
-AccountConsult adds a lot of extensions: Allows users to add accounts (including the empty account) II: allows users to deposit withdraw operations, and can check account balances himself three months after N: increasing the error function (for digital input only, character input Join tired, give up) four: increase the number of intelligent functions (for example, not allowed to withdraw the operating balance is less than 0, withdraw operand is greater than the balance of the value is not allowed, which does not allow overdrafts) as well as some regrets one: Balance allowed to withdraw the operation below 0 features, while adding, but the actual operation is very sad, because when users deposit balance is greater than 0, then balance has been greater than 0, unless encountered endMonth operations, but taking into account the practical operation of a future value endMonth , join this function is equivalent to adding a time acceleration, so discard II: Since AccountConsult too complicate
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AccountConsult.java
AccountTest.java