Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

need help to complet this program: //Purpose: write a program that computes the

ID: 3617853 • Letter: N

Question

need help to complet this program: //Purpose:  write a program that computes the balance of an account.
// First, write a void function "GetInputs" that prompts the user to
// enter the initial balance of the account and the
// type of the customer('r' - regular customer, 'v' - VIP,
// 'e' - bank employee, and 'c' - corporate customer)

// secondly, write a value returning function "ComputeBalance"
// to compute and return the
// new balance of the account. The interest rate on the account is
// different based on customer type:
//    'r'   --   2.3%
//    'v'   --   4.2%
//    'e'   --   2.6%
//    'c'   --   3.0%

#include <iostream>
using namespace std;

// declare the function "GetInputs" here
// declare thefunction "GetInputs" here// Function GetInputs definition is provided below

// declare the function "ComputeBalance" here
// declare thefunction "ComputeBalance" here// ComputeBalance definition is provided below

int main()
{

    float  balance;
    char   customerType;

    // activate/call the function "GetInputs" here to get the values of
    // the initial balance of the account and the customer type
    GetInputs(balance, customerType);

    // activate the function "ComputeBalance" here to update the balance of the account
    balance = ComputeBalance(balance, customerType);

    cout << endl<<  "The ending balance is " << balance << endl;

    return 0;
}

// GetInputs will prompt the user to enter the initial balance of an account, and
// the type of customer
// Complete the definition of function "GetInputs" below
// write thefunction heading of "GetInputs" below
{
    cout << "Please enter the starting balance of the account: " ;
    cin >> balance;

    cout << "Please enter the customer user type (r, e, c, v): " ;
    cin >> type;

    return ;
}

// ComputeBalance will update the balance with interest added to the starting balance of the
// account. The interest rate is based on the customer type.
// A switch statement needs to be used here to determine the correct interest rate to use for computation
// You may assume that only valid types are provided and case sensitive.
// Complete the definition of function "ComputeBalance" below
float ComputeBalance(float balance, char type)
{
     float rate;

     switch
             // Complete theswitch statement started above and the function definition// 'r' -- 2.3%// 'v' -- 4.2%// 'e' -- 2.6%// 'c' -- 3.0%
} need help to complet this program: //Purpose:  write a program that computes the balance of an account.
// First, write a void function "GetInputs" that prompts the user to
// enter the initial balance of the account and the
// type of the customer('r' - regular customer, 'v' - VIP,
// 'e' - bank employee, and 'c' - corporate customer)

// secondly, write a value returning function "ComputeBalance"
// to compute and return the
// new balance of the account. The interest rate on the account is
// different based on customer type:
//    'r'   --   2.3%
//    'v'   --   4.2%
//    'e'   --   2.6%
//    'c'   --   3.0%

#include <iostream>
using namespace std;

// declare the function "GetInputs" here
// declare thefunction "GetInputs" here// Function GetInputs definition is provided below

// declare the function "ComputeBalance" here
// declare thefunction "ComputeBalance" here// ComputeBalance definition is provided below

int main()
{

    float  balance;
    char   customerType;

    // activate/call the function "GetInputs" here to get the values of
    // the initial balance of the account and the customer type
    GetInputs(balance, customerType);

    // activate the function "ComputeBalance" here to update the balance of the account
    balance = ComputeBalance(balance, customerType);

    cout << endl<<  "The ending balance is " << balance << endl;

    return 0;
}

// GetInputs will prompt the user to enter the initial balance of an account, and
// the type of customer
// Complete the definition of function "GetInputs" below
// write thefunction heading of "GetInputs" below
{
    cout << "Please enter the starting balance of the account: " ;
    cin >> balance;

    cout << "Please enter the customer user type (r, e, c, v): " ;
    cin >> type;

    return ;
}

// ComputeBalance will update the balance with interest added to the starting balance of the
// account. The interest rate is based on the customer type.
// A switch statement needs to be used here to determine the correct interest rate to use for computation
// You may assume that only valid types are provided and case sensitive.
// Complete the definition of function "ComputeBalance" below
float ComputeBalance(float balance, char type)
{
     float rate;

     switch
             // Complete theswitch statement started above and the function definition// 'r' -- 2.3%// 'v' -- 4.2%// 'e' -- 2.6%// 'c' -- 3.0%
}

Explanation / Answer

please rate - thanks //Purpose: write a program that computes the balance of anaccount. // First, write a void function "GetInputs" that prompts the userto // enter the initial balance of the account and the // type of the customer('r' - regular customer, 'v' - VIP, // 'e' - bank employee, and 'c' - corporate customer) // secondly, write a value returning function "ComputeBalance" // to compute and return the // new balance of the account. The interest rate on the accountis // different based on customer type: //    'r'   --   2.3% //    'v'   --   4.2% //    'e'   --   2.6% //    'c'   --   3.0% #include using namespace std; // declare the function "GetInputs" here // declare the
function "GetInputs" here
//Function GetInputs definition is provided below
void GetInputs(float&, char&); // declare the function "ComputeBalance" here // declare the
function "ComputeBalance"here
// ComputeBalance definition is providedbelow
float ComputeBalance(float,char); int main() {     float balance;     char   customerType;     // activate/call the function "GetInputs" hereto get the values of     // the initial balance of the account and thecustomer type     GetInputs(balance, customerType);     // activate the function "ComputeBalance" hereto update the balance of the account     balance = ComputeBalance(balance,customerType);     cout