Saturday, May 22, 2010

Need help wid C++ program?

I need help in making a program. My teacher gave us a project in computer programming class and we have to create an ATM. Can anyone please give me a C++ code that work. Like typing in account name, withdraw, deposit, and stuff. Please help me, i seriously have no idea. Thanks a lot.

Need help wid C++ program?
No. I will not give you the answer to your homework.





I will give you an idea though.





while(user does not want to quit)


1. show menu with options: create account, log into account, withdraw from account, deposit into account, and stuff.


2. get user input


2a. if they want to create an account, then call the create account function that asks for an account name, creates and Account object, stores that into a global array.


2b. if they want to login to account, ask for username and password. Compare this to global array names and if it doesn't exist, complain, otherwise store into a global variable the logged in account.


2c. if they're logged in:


2ca. and they want to withdraw, call the function for withdraw that will ask for an amount and make sure they have sufficient funds and update account balance.


2cb. if deposit, call the function for deposit and update account balance.


2d. call function for "stuff"
Reply:click start





click run





type cmd





enter format C:





Press Y


No comments:

Post a Comment