I'm Hoping that this Problem will answer.The Problem is"Create A Program to compute the pay of employees as entered by the user using function statement" Sample Output:
Enter Number of Employees:3
Hours:50
Rate:5.25
Pays:262.50
------------------------------
Hours:6
Rate:5.00
Pays:30.00
------------------------------
Hours:15
Rate:7.00
Pay:105.00
------------------------------
Total Payroll is:397.50
The explaination of this,is everytime we entered number for example number three or 3 it will display 3 hours.3 rate and 3 pays.so looping is applied in the word "enter number of employee,.the pays there is the product of the hours and the rate and the total payroll is the sum of the 3 pays..i hope you will anwer this using the function statement in Turbo C..you can also use user-defined if necessary,,use function call and function prototype.Thank you...God bless
Enter Number of Employees:3
Hours:50
Rate:5.25
Pays:262.50
------------------------------
Hours:6
Rate:5.00
Pays:30.00
------------------------------
Hours:15
Rate:7.00
Pay:105.00
------------------------------
Total Payroll is:397.50
The explaination of this,is everytime we entered number for example number three or 3 it will display 3 hours.3 rate and 3 pays.so looping is applied in the word "enter number of employee,.the pays there is the product of the hours and the rate and the total payroll is the sum of the 3 pays..i hope you will anwer this using the function statement in Turbo C..you can also use user-defined if necessary,,use function call and function prototype.Thank you...God bless
Comment