Reference no: EM132125688
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.
Re-format the given resume and cover letter
: Please recheck my grammar, spelling and re-format my resume by means of professional wording and as well my cover letter to
|
Define a third class which can be the superclass
: Car: fuel capacity, serial number, passenger capacity, net weight, license plate Boat: fuel capacity, serial number, passenger capacity, net weight, draft
|
Reflect the proposed process specification
: You are a process consultant for Pit Power. Model the process captured in the proposed scenario as a Workflow net.
|
What is the roles of user roles
: How are these roles and permission similar and different from other types of users and other operating systems?
|
Compute the weekly pay for each employee at the wahoo widget
: Compute the weekly pay for each employee at the Wahoo Widget Company. Write the program in C++.
|
What is the average number of name comparisons
: What is the average number of name comparisons that will occur during a search?
|
Calculate the monthly interest
: Ask the user for the amount deposited into the account during the month. (Do not accept negative numbers.) This amount should be added to the balance.
|
When should a manager use the excel solver
: Why is Scenario Manager useful to a manager wanting to use a model developed with Excel to help make a business decision such as whether to expand his business?
|
Setup a lvm volume for the sales group
: Your task is to use /dev/sdb to create a logical volume named sales_lvm, format it with XFS, and mount under /sales.
|