Question: Please use C++ and explain what each function does. Thank you. The program asks the user to enter the bank balance and then the deposit.
Please use C++ and explain what each function does. Thank you.

The program asks the user to enter the bank balance and then the deposit. The program then calculates the new balance (after the deposit). Write a program that prompt the user to enter a bank balance. The balance entered by the user is read into a variable named balance. The program then prompts the user to enter the amount to be deposited. The amount entered by the user is read into a variable named deposit. The program then calculates the new balance, which is the present balance plus the deposit. The program then displays the new balance. Include the following 4 functions. o getBalance - This function prompts the user to enter the bank balance. (see output) o getDeposit - This function prompts the user to enter the deposit. o calcNewBalance - This function calculates the new balance by adding the balance and the deposit. o displayBalance - This function displays the new bank balance. /* OUTPUT Enter your bank balance: 1000 ( getBalance() function Enter the deposit amount: 500 ( getDeposit() function Your new balance is $1500.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
