Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Post the form of psuedocode or in the form of a flowchart. 4.28 (Calculating Weekly Pay) A company pays its employees as managers (who receive

Post the form of psuedocode or in the form of a flowchart.

4.28 (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 worked over 40 hours), commission workers (who receiver $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 advanced (maybe make a menu for the user). Each type of employee has it's own pay code: Managers have paycode 1, hourly workers have paycode 2, commission workers have code 3 and pieceworkers have code 4. Use a switch statement to compute each employee's pay based on their employee's paycode. Within the switch prompt the user (.i.e the payroll clerk) to enter the appropriate facts for your program needs to calculate each employee's pay based on that employee's paycode.

[Note: You can input values of type double using the conversion specifier $lf with scanf.]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions