![]() |
|
#1
|
|||
|
|||
C++ program for ATM machineWrite a program that simulates an ATM machine.
Assume an initial balance of 10000. A user may withdraw, deposit, or inquire as many times as he desires. The program will only end when the user chooses to quit the program, otherwise the program should loop and prompt the users for actions. For security, include an authentication routine that will prompt the user to enter a password. The user is only allowed three attempts to enter the correct password. After the third attempt the program should terminate. CPP / C++ / C Code:
I'm almost done with my program except for this condition The program will only end when the user chooses to quit the program, otherwise the program should loop and prompt the users for actions. Last edited by admin : 06-Feb-2008 at 17:39.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: c++ program for ATM machineenclose the codes you want to execute in a loop with the while statement and break out of it when the user chose to quit.
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: c++ program for ATM machineI don't know exactly where to put that codes, can you please do it for me? Please...
|
|
#4
|
|||
|
|||
Re: c++ program for ATM machineBegging is not a very impressive display of your coding skills...
www.math-cs.gordon.edu :davis: |
|
#5
|
|||
|
|||
Re: c++ program for ATM machinexory if it looks like i'm begging but i'm just asking how cuz im a newbie when it comes to c++, the link you gave me, i see that the codes are java if i'm ryt,, anyway we havent reach that topic yet, all i'm asking is for a simple ATm machine , actually im almost done but the problem is it end after i'm done with first options, example i was able to log in for the orret password, atm machine will give four options,
if i choose deposit,example i deposit 5000, it will prompt for what i deposit which is 5000 and at the same time, it will prompt 15000 as the total amount because i declared my initial balance as 10000 double balance = 10000; now how about if i want to deposit again or withdraw, how to do it ? since my program ends after selecting one of the options,... what i want to happen here is that IT wiLL only terminate if me as the user will be the one to quit... pls help me.. this is now begging..hehehe!pls.. =p thanks in advance!!!! |
|
#6
|
|||
|
|||
Re: c++ program for ATM machineI have updated your code to put the menu system in a loop until the user selects quit. I've commented where appropriate, I hope this helps
CPP / C++ / C Code:
|
|
#7
|
|||
|
|||
Re: C++ program for ATM machineNAWOC, thanks a lot! I'll check that if that will works. Actually, I already got the code right, some friend of mine help me, it took us almost an hour. What he did is...
CPP / C++ / C Code:
Anyway, nawoc.. thanks a lot, I'll study that code and see, check if that will works. Thanks! Last edited by admin : 07-Feb-2008 at 23:54.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 10:13 |
| Text-Based Roulette Game | mfm1983 | C++ Forum | 5 | 29-Nov-2006 12:20 |
| BOOKEEPING program, HELP!! | yabud | C Programming Language | 10 | 17-Nov-2006 03:48 |
| Pipeline freeze simulation | darklightred | C++ Forum | 6 | 27-Jul-2006 19:37 |
| How to read particular memory location ? | realnapster | C Programming Language | 10 | 10-May-2006 09:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The