Calculate the base pay according to the appropriate salary

Assignment Help Computer Engineering
Reference no: EM132125667

Salaries

Task: Compute the weekly pay for each employee at the Wahoo Widget Company. For each employee, you will calculate the base pay according to the appropriate salary category, and then subtract taxes and deductions. Provide the algorithm which exactly matches the Program in C++. Write the program in C++.

Input: For each employee, read an employee ID (a 4-digit integer) and a salary category code (see below). Then read whatever other information might be needed to compute a net salary for that person. Because of occasional employee turn-over, you do not know the exact number of employees in advance. Determine how you will know when all employees have been processed for this week. (You will use a loop to process the employees, but not a counting loop.)

Processing: The Company has established 4 salary categories:

Code 1: Managers. They receive a fixed annual salary of $51,500.

Code 2: Factory workers. They receive a fixed wage of 13.85 per hour for the first 40 hours worked each week, then they receive time-and-a-half (1.5 the regular salary) for any overtime.

Code 3: Sales staff. They receive $250 each week, plus a commission that is 5.7% of their gross weekly sales of widgets.

Code 4: Pieceworkers. The part-time staff receives a fixed fee of $11.30 for each widget they produce. They do not pay health insurance or union dues.

Additional factors that apply to the employees:

The combined federal, state, and local taxes are computed as 19% of the gross salary.

After taxes are subtracted, $27.85 is deducted from managers, factory workers, and sales staff to cover health insurance and union dues.

Within the processing loop, use a switch statement to compute each employee's weekly pay based on that employee's pay code. Within the switch, prompt the user (i.e., the payroll clerk) to enter the appropriate facts that your program needs to calculate the gross salary for that pay code. Then subtract the taxes and deductions. The final result is the net salary (take-home pay).

Output: After each employee is processed, display the results on the screen: the employee ID, gross salary, taxes, deductions, and net salary. Format all money to two decimal places. Line up the decimal points in the display.

Reference no: EM132125667

Questions Cloud

Why are conformance levels important : Why are conformance levels important? What is the Microsoft.NET Framework? What basic elements does it include?
Create a company to sell school-specific aloha shirts : After Sal Aurigemma received his PhD from the University of Hawaii, he became an assistant professor at the University of Tulsa.
Write a program that asks the user to enter todays sales : Write a program that asks the user to enter today's sales for 5 stores. The program should then display a bar graph comparing each store's sales.
Is there any other way to solve the performance problem : You are running a memory-intensive multimedia application on your computer, which has 1 GB RAM installed.
Calculate the base pay according to the appropriate salary : Compute the weekly pay for each employee at the Wahoo Widget Company. Calculate the base pay according to the appropriate salary category.
Which graphics are most effective : It is said "the best icons are more like traffic signs than graphic illustrations" providing a quick indication of the task they represent.
Find the best quadratic fit to the data : Find the best quadratic fit to the data, and use it to estimate the projected sales for the rest of the year.
Create case study based on jhonson and jhonson company : Assignment - Portfolio Project For the final project, you will create a case study based on a company of your choice. The company is "jhonson and jhonson"
Design a gui form : Design a GUI Form. Must use a nested IF! Create 3 output labels: Category Level, Minimum Wind, and Maximum Wind - display all 3 values.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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