Question: please help 170 pts Using examples discussed in class, write an algorithm for computing both gross and net pay for several employees, as well as

please help please help 170 pts Using examples discussed in class, write an algorithm
for computing both gross and net pay for several employees, as well

170 pts Using examples discussed in class, write an algorithm for computing both gross and net pay for several employees, as well as the payroll total. The algorithm must use control structures - both selection and repetition. Make sure you meet all the following requirements: a) The algorithm will ask the user to receive as input: Number of employees for which it's going to compute payment Total number of hours worked by and parate for EACH employee this week b) Everything else will be computed by the algorithm using the following constants Use DEDUCT_PERC -0.20 to compute deductions. This means 20% of general deductions #) Use REG HRS - 40 as the max number of regular hours. This means that any hours worked over 40 are considered overtime hours 1) USE OVER WAGE1.5 as the increased payrate for overtime. This means that overtime hours are paid 1.5 times the rate that regular hours. For example, if the wage is $8.00/ht, overtime will be 8.15.512.00 PER OVERTIME HOUR ONLY c) Gross pay will be the total of regular hours plus overtime hours at their respective parates d) Net pay will be gross pay minus deductions e) Using the info provided by the user and the constants definitions, your sigorithm should compute and display the following FOR EACH EMPLOYEE Number of overtime hours, if anythis, do not display, only compute them) # Amount payed for overtime hours, ifa iany Gross pay M) Amount on deductions v) Net pay You should also keep a running total accumulator) of the gross pay that is being payed that week. This payroll total should be displayed at the end I DO NOT WANT YOU TO WRITE CODE, use pseudocode. (30 pts For the problem described above, draw a flowchart similar to the ones you sawin class, reflecting these modifications, ) (70 pts] Using examples discussed in class, write an algorithm for computing both gross and net pay for several employees, as well as the payroll total. The algorithm must use control structures - both selection and repetition. Make sure you meet all the following requirements: a) The algorithm will ask the user, to receive as input: i) Number of employees for which it's going to compute payment ii) Total number of hours worked by and payrate for EACH employee this week b) Everything else will be computed by the algorithm using the following constants: i) Use DEDUCT_PERC = 0.20 to compute deductions. This means 20% of general deductions. ii) Use REG_HRS 40 as the max number of regular hours. This means that any hours worked over 40 are considered overtime hours. iii) Use OVER_WAGE=1.5 as the increased payrate for overtime. This means that overtime hours are paid 1.5 times the rate that regular hours. For example, if the wage is $8.00/hr, overtime will be 8 * 1.5 = $12.00 PER OVERTIME HOUR ONLY. c) Gross pay will be the total of regular hours plus overtime hours at their respective payrates. d) Net pay will be gross pay minus deductions. e) Using the info provided by the user and the constants definitions, your algorithm should compute and display the following FOR EACH EMPLOYEE: i) Number of overtime hours, if any (this, do not display; only compute them) ii) Amount payed for overtime hours, if any iii) Gross pay iv) Amount on deductions v) Net pay

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!