Question: Must use pointers. C++ program Instructions: Create a program that prompts the user which bank account to access. The user will have an option to
Must use pointers. C++ program
Instructions:
Create a program that prompts the user which bank account to access. The user will have an option to access a temporary account, and one that is not temporary. The temporary account will be created as a dynamic variable, the other with an automatic variable.
Prompt the user:
What account do you want to access? Personal or Temporary?
Once they select an account, prompt if they want to withdraw or deposit money
Do you want to view your balance?
Output Balance
Give the user a menu that will allow them to select from the menu above.
Suggested (you may use your own) Function Prototypes:
void Deposit(double *account, doublebalance);
precondition: account has been created
poscondition: user can deposit money into this account.
void Withdraw( double *account, doubleamount);
precondition: account has been created
postconditon: user can withdraw money
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
