954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

phython program for single user of atm machine

write a program that will act as a single user's ATM machine.....the user will have the following menu options

1. deposit
2. withdrawal
3. view account balance
4. exit


constraints for validation

user can not deposit less tha zero dollars
user must withdraw in $10 increments
user can not withdraw more than $200 in single session (need to keep running total)
user is not allowed to withdraw enire balance (at least $25 should be left)

other requirments

program should contain welcome message and closing message when exiting
program should include comments at 1:3 comments to code ratio
withdraw , deposit, and view balance should be seperate modules

ralphcatech
Newbie Poster
6 posts since Nov 2010
Reputation Points: 8
Solved Threads: 0
 

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
Team Colleague
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
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

these comments were not called for all i asked was to be directed in the right direction

ralphcatech
Newbie Poster
6 posts since Nov 2010
Reputation Points: 8
Solved Threads: 0
 

You are welcome.

pyTony
pyMod
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 
You are welcome.


you may consider yourself cool but you are far from a any kind of tech guru

ralphcatech
Newbie Poster
6 posts since Nov 2010
Reputation Points: 8
Solved Threads: 0
 

is there any one out there that can take on this task

ralphcatech
Newbie Poster
6 posts since Nov 2010
Reputation Points: 8
Solved Threads: 0
 
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
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You