code needs to be in c++
Consider the definition of the function main.
int main ()
{
intx, y;
char z;
double rate, hours;
double amount;
.
.
.
}
The variables x, y, z, rate, and hours referred to in items athrough f below are the variables of the function main. Each of thefunctions described must have the appropriate parameters to accessthese variables. Write the following definitions:
a) Write the definition of the function initialize thatinitializes x and y to 0 and z to the blank character.
b) Write the definition of the function getHoursRate thatprompts the user to input the hours worked and rate per hour toinitialize the variables hours and rate
PayPal Gateway not configured
PayPal Gateway not configured