Calculate each employee pay based on that employee pay code

Assignment Help Basic Computer Science
Reference no: EM131608283

Question: (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 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 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 pay code. Within the switch, prompt the user (i.e., the payroll clerk) to enter the appropriate facts your program needs to calculate each employee's pay based on that employee's pay code.

Reference no: EM131608283

Questions Cloud

Discuss how tone of doctoral writing differ from the voice : How do the voice and tone of doctoral writing differ from the voice and tone of writing at other academic levels
Forced the redesign of campus networks : Discussion topic: Research and discuss various trends that have forced the redesign of campus networks.
Investigating lockbox system to reduce its collection time : Paper Submarine Manufacturing is investigating a lockbox system to reduce its collection time.
How are the topics of the two articles related : Research at least two articles on the topic of managerial issues of a networked organization. Write a brief synthesis and summary of the two articles.
Calculate each employee pay based on that employee pay code : (Calculating Weekly Pay) A company pays its employees as managers (who receive a fixed weekly salary), hourly workers.
Global growth generators : Global growth generators: Moving beyond emerging markets and BRICs by Willem Buiter, Ebrahim Rahbari
Discussions of qualitative design options : Case studies are often included in the discussions of qualitative design options. Why do you think this is so?
Describe vrooms model of expectancy theory : Describe Vroom's Model of Expectancy Theory.Describe how the model measures motivation.Explain how the measure of valence can aid staffing issues in an org.
Discuss the problem pythagorean triples : (Pythagorean Triples) A right triangle can have sides that are all integers. The set of three integer values for the sides of a right triangle.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Discussed security protocols from ip layer

We have discussed security protocols from IP layer (e.g., IPSec) to application layer (e.g. XML and S/MIME). Are they redundant? Is it possible to design a universal security solution at one layer? Provide arguments to support your viewpoint.

  Z-tranforms and convolution in matlab

Do problem 2c and 2d from homework of week 5 in Matlab.(c) and express it in positive powers of z. When computing the value of trigonometric functions, keep in mind that the arguments are always in radians and not in degrees.

  Discuss theimportance of the future

Read the article by Wagner titled "Top 10 Disappearing Futures" located in the ABI/Inform database of the CSU OnlineLibrary. Choose one of the disappearing futures and write a paper at least two pages in length discussing it. Discuss theimportance of..

  Provide encryption services

There are many ways to provide encryption services. Pretty Good Privacy (PGP) is one example of an encryption package that is readily available

  Predict the average cost of renting a car in 2008

The prediction equation for a set of data relating the year in which a car was rented as the independent variable to the weekly car rental fee as the dependent variable is y = 4.3x - 8424.3. Predict the average cost of renting a car in 2008.

  Determine the expected time to meet this probability

The system administrators want to expire passwords once they have a probability of 0.10 of having been guessed. Determine the expected time to meet this probability under each of the following conditions.

  Calculate year depreciation expense

Calculate each year's depreciation expense for the period 2012-2017 under each of the following depreciation methods:

  User enters a negative number or a nondigit number

If the user enters a negative number or a nondigit number, throw and handle an appropriate exception and prompt the user to enter another nonnegative number.

  List three debugging methods within the debugger which can

list three debugging techniques within the debugger that can be used to locate logical error in the java code. for each

  What is machine learning

1) What is machine learning? 2) What is the relationship between Machine Learning & Big Data? 3) Provide a few business cases where Machine Learning would help.

  Security threat report

Determine whether or not you believe that the mobile device threats are the most critical and disturbing of all of the security threats presented in the articles. Provide a rationale for your response.

  What are the benefits and drawbacks of using the model

For each of the process models described in this chapter, bow does the model handle a significant change in requirements late in development?

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