Question: Styles Program Description Write a C++ program that computes and displays employees' earnings. Prompt the user for type of employee (hourly (hor H) or management
Styles Program Description Write a C++ program that computes and displays employees' earnings. Prompt the user for type of employee (hourly ("h"or "H") or management ("'m" or "M") If the employee is management: . get the annual salary get the pay period (weekly ("w" or "W"), bi-weekly ("b" or "B") or monthly ("m" or e compute the gross salary for the pay period (Divide annual salary by 52 for weekly, 26 for bi-weekly, and 12 for monthly) deduct from gross pay: 7% for FICA, 2% for Medicare, 10% for health insurance e e print out gross pay, deductions for FICA, Medicare, health insurance, and net pay If the employee is hourly: . get the hourly rate of pay get the number of hours worked- assume it is for one week compute the gross pay as hourly rate for up to 40 hours and time-and a half for anything over that deduct from gross pay: 7% for FICA, 2% for Medicare, 10% for health insurance print out regular pay, overtime pay (only if the employee has earned it), gross pay deductions for FICA, Medicare, health insurance, and net pay Notes: Insert the top comment with your own description Create a nicely formatted output for your results. If you get any illegal input (characters other than the ones you expect at any time) let the user know and stop the program . Submission . Compile and run your program one last time before submitting it. . The name of your program file should be hw1.cpp. Upload your file to Blackboard. Check if the file was uploaded correctly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
