Write a program with an overloaded function to determine the salary of an hourly
ID: 3665550 • Letter: W
Question
Write a program with an overloaded function to determine the salary of an hourly worker, who gets time and a half for hours over 40. Have the user input the hourly rate and the hours worked. If the hours are over 40, calculate regular hours and overtime hours, and then call the function with arguments for hourly rate, regular hours, and overtime hours. If the hours are not over 40, call the overloaded version of the function with arguments for hourly rate and just all the regular hours. Both versions of the function should calculate (with different formulas) and return the salary to main to print with 2 decimal places. Use proper forms, function prototypes, etc.
Explanation / Answer
#include <stdio.h>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.