Design Problem using c++
Consider the definition of the function main.
int main()
{
int x, y;
char z;
double rate, hours;
double amount;
. . . }
Each of the functions described must have the appropriateparameters to access these variables. Write the followingdefinitions:
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 getHoursRatethat prompts the user to input the hours worked and rate per hourto initialize the variables hours and rate of the functionmain.
c. Write the definition of the value-returning functionpayCheck that calculates and returns the amount to be paidto an employee
PayPal Gateway not configured
PayPal Gateway not configured