logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sethh PowellHistory
(4/5)

542 Answers

Hire Me
expert
Ray BjorkkEngineering
(5/5)

944 Answers

Hire Me
expert
Djemila BemroseBusiness
(5/5)

836 Answers

Hire Me
expert
Ivor CutlerLaw
(5/5)

622 Answers

Hire Me
C++ Programming

Write a program to compute the weekly pay for each employee you do not know the number of employees in advance.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Assignment 1

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

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

312 Experts Online