Write a program to compute the weekly pay for each employee

Assignment Help Programming Languages
Reference no: EM131505595

Question: 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

Reference no: EM131505595

Questions Cloud

What are different strategy for successful peer observation : What are some different strategies for successful peer observation? When might it be effective to review student work across multiple teachers?
Write a body mass index calculator : Write a Body Mass Index calculator in C++. Input will be a person's height in feet and inches as well as their weight in pounds and ounces.
Write the program for bank management system : Write the program for bank management system using C++ code. 1. Declares a string variable bankName and initializes it to Bank of California
List of materials or resources specifically needed : List of materials or resources specifically needed for the adaptation or individualization. Describe the adaptation or individualization itself.
Write a program to compute the weekly pay for each employee : 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).
What did you find most interesting about the chapter : What did you find most interesting or "surprising" about Chapter 6?
What is the value of a b and c after each statement executes : Given the following variable declarations: int a = 5,b = 6, c; What is the value of a. b. and c after each of the following statements executes?
What are the pertinent and likely family conflicts : Summative Assessment- What are the pertinent and likely family (micro) conflicts and differences, and concerns that could be encountered?
Write a handover for each patient for your case study : Use the following ISBAR to write a handover for each patient/client for your case study meeting (this is your group presentation)

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd