Please do your own work. We don't do your homework here. Start implementing what you have here, and if you have questions, come back.
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
See some object oriented books, I think ATM is standard example in one/some of them for use cases. Start simple, build function by function and test functionality of each separately.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
See some object oriented books, I think ATM is standard example in one/some of them for use cases. Start simple, build function by function and test functionality of each separately.
Here is direct link of one of the numerous case studies: http://www.math-cs.gordon.edu/courses/cs211/ATMExample/
You must simplify significantly, of course as yours looks medium level exercise, but the case is for the real thing.
For starter you can deside your starting direction, start either from user interaction dummy without real functionality (or basic variable update) or the basic logic part. I usually prefer to implement the logic, reason is that I can put that in torture test with random number loop instead of user. This is much faster as proving by typing.
It is good to write down the constraint case tests and include them as one test function early on so you can run quick test after all changes to your program that you continue to fullfill the requirements.
Read each word in assignment carefully, as example:
act as a single user's ATM machine
This means you are not required to include password login routine etc. Probably you should be able to save state to file, but it can be fixed format file.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852