Your program should: display an informative title prompt the user for the number
ID: 3613575 • Letter: Y
Question
Your program should:
display an informative title
prompt the user for the number of hours worked
verify that the number of hours worked is greater than 0
prompt the user for the hourly pay rate
verify that the hourly pay rate is greater than 0
use the verified values that the user entered to calculate thegross pay, social security tax withheld, withholding tax, and netpay
display the various calculated values, one per line with anappropriate label.
The GrossPay is calculated as the sum of the wagesfor the first 40 (or less) hours and the overtime pay.
The Overtime Pay is calculated as 1.5times the hourly pay rate for every hour worked over 40 hours.
The Social Security Tax Withheld iscalculated as 8% of the Gross Pay.
The Withholding Tax is calculated as10% of the Gross Pay.
The Net Pay is calculated as Gross Payminus Social Security Tax Withheld minus Withholding Tax.
Explanation / Answer
please rate - thanks #include using namespace std; int main() {double hours,rate,gross,over,sstax,withtax,net; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.