Hi there,
If you are getting this assignment I assume your teacher has taught you:
- To use variables
- To print output to the screen and receive output from the user
- To use conditional statements like if/else or switch
- To use loops like for or (do/) while.
My last post comes as close to giving you the solution without actually writing the code myself.
Let's try the first two objectives first:
There are two bank accounts: current and savings. - So you will need 2 variables: one to store the balance in the current account and one to store the balance of the savings account.
First, ask the initial balance on the bank account, reject negative balance. - You will need to show a message on the screen asking the user for the initial balance and store it in another variable. If the number entered by the user was negative, you should repeat the question. |
You will need following information:
http://www.cplusplus.com/doc/tutorial/program_structure/
http://www.cplusplus.com/doc/tutorial/variables/
http://www.cplusplus.com/doc/tutorial/basic_io/
http://www.cplusplus.com/doc/tutorial/control/
Please try a fair attempt yourself first. If you have any further questions or doubts, do not hesitate to ask.
All the best,
NwN