Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

carefully and make sure that you have met each specification. This assignment us

ID: 3635310 • Letter: C

Question

carefully and make sure that you have met each specification. This assignment uses almost every item that we have covered this semester so spend considerable time planning your approach before you get heavily involved in writing the code. I have included screen captures to illustrate how the program should perform.
Additional items that you might find helpful to complete this final project are the following:
system(“cls”)
This statement will clear the console window and place the cursor in the home position.
I wish you well.
Final Project
You are to write a payroll program which prompts the user for employee payroll input data, validates the data, performs calculations on the data and displays the results on the screen. The program should continue to process other employee’s payroll data until a sentinel value is entered to end the program.
The program’s input data will consist of employee number (a positive integer number),
employee position (‘m’ for management, ‘s’ for supervisor, and ‘e’ for employee), employee hours worked (must be greater than zero) and employee insurance type (1 for single, 2 for single with children, 3 for married, and 4 for married with children).
Appropriate comments should be liberally placed throughout your program. Proper indenting and efficient coding concepts should be demonstrated.
You should be prepared to show to your instructor on Thursday, April 23 your pseudocode or flowchart solution for the problem. The Hierarchy Chart on the last page may be helpful to get you started. After seeing your logic plan, your program can be examined to fix problems.
main Function
This function should contain a loop that processes employee payroll data until a sentinel value is entered by the user. A typical case would be to condition the loop on the employee number, checking for a sentinel value in the employee number field. (See Figure 1.)
The main function should also contain a loop that validates the employee position entered by the user. For example, a while loop conditioned by multiple comparisons
CIS 115 90 Introduction to Programming and Logic
Final Project Spring Semester, 2009
2
might be used (employee position != ‘m’ && employee position != ‘s’ && employee position != ‘e’). (See Figure 2.)
A validation loop for employee hours entered by the user should also be used to only accept a value greater than zero. (See Figure 3.)
Employee insurance type entered by the user should be validated using a while loop with multiple conditions (employee insurance type != 1 && employee insurance type != 2 . . . ). (See Figure 4.)
Calculations as described below and displaying of the input and calculated data should be handled with the main function.
Other Functions
Your program should contain a function that processes the employee’s pay rate. If the employee’s position is ‘m’, the rate is 700.00, if ‘s’, the rate is 600.00 and if ‘e’, the rate is 500. The function should return the rate to the main function.
Your program should contain a function that determines any bonus available to the employee. If the gross pay is greater than or = 12000, the bonus is 1000. If the gross pay is less than or equal 11999 and gross pay is greater than or equal to 9000, the bonus is 600. If the gross pay is less than or equal to 8999, the bonus is zero. The function should return the bonus amount to the main function.
Your program should contain a function that calculates the employee tax amount. If the gross pay is greater than or equal to 7000, the tax amount is gross pay times .15. If the gross pay is less than or equal to 6999 and gross pay is greater than or equal to 4000, the tax amount is gross pay times .10. If the gross pay is less than or equal 3999 and gross pay is greater than or equal to 2000, the tax amount is gross pay times .05. If the gross pay is less than or equal to 1999, the tax amount is zero. The function should return the tax amount to the main function.
Your program should contain a function that determines the employee insurance rate based on the employee insurance type. If the employee insurance type is 1, the employee insurance rate is .02. If the employee insurance type is 2, the employee insurance rate is.03. If the employee insurance type is 3, the employee insurance rate is .04. If the employee insurance type is 4, the employee insurance rate is .05. The function should return the employee insurance rate to the main function.
Your program should contain a function that will display the user input data, nicely formatted on a clear screen. The function will return to the main function. (See Figure 5, upper portion.)
Your program should contain a function that will display the calculated output data, nicely formatted, on the screen. All dollar amounts should be displayed with 2 decimal
CIS 115 90 Introduction to Programming and Logic
Final Project Spring Semester, 2009
3
places and arranged in columns. The function will return to the main function. (See Figure 5, lower portion.)
Calculations
Employee Gross Pay = Employee Pay Rate times Employee Hours Worked
Employee Total Pay = Employee Gross Pay + Employee Bonus Pay
Employee Insurance Amount = Employee Gross Pay times Employee Insurance Rate
Employee Medical Amount = 100
Employee Social Security Amount = Employee Gross Pay times .05
Employee Total Deductions = Employee Tax Amount + Employee Social Security Amount + Employee Medical Amount + Employee Insurance Amount
Employee Net Pay = Employee Total Pay – Employee Total Deductions
Extra Credit
Your program may contain additional items for extra credit. Placing one or more functions in a header file, the use of constants, the use of the switch statement, the use of an array or adding additional functions to make your program more robust are examples of additional items. Make sure that at the top of your program, listed in the comments section, are any additional items to be evaluated.

Explanation / Answer

Hi i have solved this question in my notebook, but i can't type it and post it here because there's no time... please rate me lifesaver and i'll make sure the answer is in your inbox! i don't do this generally but i am doing this due to lack of time...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote