Question: Ultra LTE 12:31 PM rite a C++ program to do the following: 1. Declare global variable called accountBalance of type double 2. The Main program
Ultra LTE 12:31 PM rite a C++ program to do the following: 1. Declare global variable called accountBalance of type double 2. The Main program should ask the user for their name and account number and display the following choices: 1. Press i for Withdrawal 2. Press 2 for Deposit 3. Press 3 for Balance Inquiry 4. Press 4 to quit 3. If the user chooses 1, input the withdrawal amount from the user and call the function called accountWithdrawal with this amount. This function updates the balance with the amount withdrawn. 4. If the user chooses 2, input the deposit amount from the user and call the function called accountDeposit with this amount. The function updates the balance with the amount deposited. 5. If the user chooses 3, call the function called accountInquiry that returns the current balance on the account 6. If the user chooses 4, exit from the program PLEASE solve this using only switch case, MUST use WHILE loop, you can use string function. Also please take care of the situation where money goes overdraft ) show that option in Text Submission
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
