Question: I am having trouble with executing the program. It allows me to execute, but when I enter a postcode it says that the input is

I am having trouble with executing the program. It allows me to execute, but when I enter a postcode it says that the input is invalid.

I am having trouble with executing the program. It allows me to

execute, but when I enter a postcode it says that the input

is invalid. in this book We'll consider many brute-force approaches to various

interesting problems. 4.28 (Calculating Weekly Pay) A company pays its employees as

in this book We'll consider many brute-force approaches to various interesting problems. 4.28 (Calculating Weekly Pay) A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the 40 hours they work and time-and-a-half i e 1.5 times their hourly wage for overtime worked over 40 hours commission workers who receiver S250 pus 57% of their gross weekly sales, or pieceworkers (who receive a fixed amount of money for each of the items they produce-each pieceworker in this company wo type of item). Write a program to compute the weekly pay for each employee. You do not know the number of employees in advanced (maybe make a menu for the user). Each type of employee has it's own pay code: Managers have paycode 1, hourly workers have paycode 2, commission workers have code 3 and pieceworkers have code 4 Use a switch statem ent to compute each employee's pay based on their employee's paycode. Within the switch prompt the user ti.e the payroll clerk) to enter the appropriate facts for your program needs to calculate each employee's pay based on that employee's paycode

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!