I am having trouble with creating this program, could someone please assist me with this project.

Write a C++ program to display the following menu:
Bank of America
1. Add Account
2. View Account
3. Delete Account
4. View All Account
5. Deposit Amount
6. Withdraw Amount
7. Exit
Writ the following functions:
1. add_account: this function will add a new account to the system and called when the user
selects 1. The function will create an a new account with the following information:
a. Account number
b. Account owner name
c. Account type ( checking or saving)
d. Balance
2. view_account: this function will view a specific account information based on the matching
account number and called when the user selects 2.
3. delate_account: this function will delete a specific account from the system based on the
matching account number and called when the user selects 3.
4. view_all_account: this function will view all available accounts in the system and called when
the user selects 4.
5. deposite: this function will let the customer to add a specific amount into the account, and
called when the user selects 5.
6. withdraw: this function will let the customer to withdraw a specific amount from the account,
and called when the user selects 6.
7. Check: this function will check if the balance or the account number is not negative, and called
when the user wants to do withdraw or input a new account.
The program will terminate only if the user selects 5.
Note:
 Separate header file from the source (10 points)
 Use structure (10 points)
 Use vector (10 points)
 Overloading function or template for check function (20 points)
Is that just the basic function, or one that grants you the bonus 50 points at the end?

No one here is going to do you homework for you.

The amount of effort we put in corresponds to the amount of effort you put in. If we see you've made a genuine effort, we'll help.

But just being able to press ctrl-c and ctrl-v doesn't count.
Bank of America

You could ask them if they lend you the source of the program they use, just for one day to harvest the points. Then you will give it back in no time.
what are you having trouble with, be specific and show what you tried.
or if you are having trouble designing it, say that.
There are no bonus points at the end. This is just a practice assignment my teacher has given us before our final, something to just play around with but if I could figure out how to actually do it, it would probably help me out on the final. I'm having trouble designing it.
ok.

I see this:
1. Add Account
2. View Account
3. Delete Account
4. View All Account
5. Deposit Amount
6. Withdraw Amount

and this
Separate header file from the source (10 points)
 Use structure (10 points)
 Use vector (10 points)
 Overloading function or template for check function (20 points)

which tells me that you need an 'account' class. Digging deeper into your text, I see that account class probably needs these:
Account number
b. Account owner name
c. Account type ( checking or saving)
d. Balance

but an account class is just 1. You need to contain them, and you need a vector. Its tempting to just make a vector of accounts, but that is clunky. How about a second class that holds a vector of accounts and implements the methods that remain in the other parts of the problem which (many of them) need to manipulate it at that vector level, searching it, adding to it, removing from it, etc... ?
that leaves the outstanding question of what you can overload or template for 7.
but do you see how I got this just from the problem text, pulling it apart and putting it back together in c++ terms?



Topic archived. No new replies allowed.