hi, can you please help me with the below question :
Write a program to accept with input and output similar to the following. Input is in red. $xxx.xx will be replace by the calculated values.
Employee name? name Hourly Rate? 15.00 Hours worked? 42
Rich earned $645.00 FICA $xxx.xx Fed $xxx.xx State $xxx.xx Net Pay $xxx.xx
FICA is calculated at 7.65%. Fed tax is calculated at 22% for gross pay amounts less than $1500 and 28% for larger gross pay amounts. State tax is calculated at 12%. Overtime is payed at 1.5 regular rate for any hours over 40.
You may use as many functions as you wish but you must have functions named as below. You must determine the parameters for these functions and whether they will be value returning or void functions. There are many correct solutions, pick a path and make it work. Include a comment to describe the purpose of each function.
Accept only hourly rates between 5.50 and 200.00. Force the user to reenter an hourly rate until it is in range.
Accept only hours worked between 0.0 and 60.0 without a warning cross check. If hours are greater than 60.0 ask the user to override the 60 hour limit. The user may override the limit and use a value out of range or renter a value. The final value entered must either be within range, or overridden.
Flag any net pay in excess of $10,000 with the "(out of normal range)" warning.
Comment your code so the next poor person who needs to modify it will thank you.
Use the /* in */ and /* out */ comments to indicate pass by value and pass by reference parameters in the style used by the textbook.
Prototype all function at the beginning of the program. The main() function should be the first actual coded function and all other functions should appear below the main().
Recently Asked Questions
- Respond to the Markov Analysis and Forecasting application on pages 143-144 of the textbook. Provide answers to all three (3) questions. Helpful
- Answer the following question. Please show all your work/explanation. Kindly note that I need help with the 3rd sub - part/sub - question (in bold). I have
- Concord Corporation had 807000 shares of common stock outstanding on January 1, issued 121000 shares on May 1, purchased 66000 shares of treasury stock on