[Solved] Write a function that prompts the user for hours worked, rate and name. Use parameter passing, and pass by reference.

Write a function that prompts the user for hours worked, rate and name. Use parameter passing, and pass by reference. Write a function that calculates the gross, base and overtime pay, pass by reference. Write a function that calculates tax, taking as input the gross pay, returning the tax owed. Calculate the total amount paid (gross pay) for all 5 people. Use the return value from the function that calculates the gross pay. Write a print function that generates the output, including the total amount paid, in addition to the data for each employee. Example (Sample input).

Leave a Reply

Your email address will not be published. Required fields are marked *