Random Sample Notes
Random Sample Notes PHYS 1302
Popular in introduction to physics
Popular in Physics 2
This 1 page Class Notes was uploaded by Darren Jackson on Monday May 2, 2016. The Class Notes belongs to PHYS 1302 at University of Houston taught by Mini Das in Spring 2016. Since its upload, it has received 23 views. For similar materials see introduction to physics in Physics 2 at University of Houston.
Reviews for Random Sample Notes
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 05/02/16
ELET 2300, Spring 2016 Due: 4/21/2016 @11:50 PM Problem Description 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 first 40 hours they work and “time-and-a-half,” i.e. 1.5 times their hourly wage, for overtime hours worked), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each of the items they produce-each pieceworker in this company works on only one type of item). Write a program to compute the weekly pay for each employee. You do not know the number of employees in advance. Each type of employee has its own pay code: Managers have pay code 1, hourly workers have code 2, commission workers have code 3 and pieceworkers have code 4. Use a switch to compute each employee’s pay based on that employee’s paycode. Within the switch, prompt the user to enter the appropriate facts your program needs to calculate each employee’s pay based on that employee’s paycode. SampleOutput Enter paycode (-1 to end): 3 Commission worker selected. Enter gross weekly sales: 4000 Commission worker’s pay is $ 478.00 Enter paycode (-1 to end): 2 Hourly worker is selected. Enter hourly salary: 4.5 Enter the total hours worked: 20 Worker’s pay is $90.00 Enter paycode (-1 to end): -1 Summary of Payouts Employee Categories Number Paid —————————— —————– Managers 0 Hourly Workers 1 Commission Workers 0 Piece Workers 0 Important Notes o Your file must be virus FREE (Zero will be given for infected file). o Your program must include appropriate code comments, o On the due date, please submit your source file only
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'