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

  The sequential search algorithm to locate one of the values

It should call a module that uses the sequential search algorithm to locate one of the values. The module shuld keep a count of the number of comparisions it makes until it finds the value. Then the program should call another module that uses the..

  Create a java application for employee class

Create a Java application, that support the following:- Create an Employee class, which holds following information: Employee First Name, Employee Last Name.

  Create an xslt stylesheet for your xml resume

Create an XSLT stylesheet for your XML resume that uses a client-side transform to display your resume using an HTML table. You should use the resume validated by the XMLSchema for practice with namespaces.

  Extend the user management

Extend the user management so that user can be stored in database - user can be administrator and he can access that admin page

  Determine the output of the given program what will happen

question what is the output of the following program?class exception2 public static void mainstring args

  Develop procedure to returns recent order information

Develop a procedure that returns the most recent order information for aparticular basket. This procedure must determine most recent stage entry from the BB_BASKETSTATUS table

  Write a function two-subsets in scheme that takes a list l

Write a function two-subsets in Scheme that takes a list L of positive integers and some auxiliary parameters of your choice.

  Executes the program to find the representation

Executes the program to find the representation a 19,2014 md 50000 for all of the p values that the function allows. Show the results in a table.

  Program application to check donation amount

Additionally, program application to check that donation amount and number of donations are positive numbers. If either donation amount or number of donations is not positive value.

  Design a modularized body mass index program

Design a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player. The formula to calculate the BMI is as follows:

  How is active directory implemented?

How is Active Directory implemented?

  Implement an autoincrement operator for variables

CSC8503 Principles of Programming Languages Assignment. Implement an autoincrement operator for variables. Implement a do ... until post-tested loop

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