Anonymous

# C 的問題

An employee is paid at a rate of \$16.78 per hour for regular hours worked in a week.

Any hours over that are paid at the overtime rate of one and one-half times that. Form

the worker's gross pay, 6% is withheld for Social Security tax, 14% is withheld for federal income tax, and \$10 per week is withheld for union dues. If the worker has three or more dependents, then an additional \$35 is withheld to cover the extra cost of health insurance beyond what the employer pays. Write a program that will read in the number of hours worked in a week and the number of dependents as input and that will then output the worker's gross pay, each withholding amount, and the net take-home pay for the week.

Rating
• yuci
Lv 5

雇員每小時報償16.78。

加班報償為一個半倍

工人總薪水，

6%適合社會保險稅扣留，

14%適合聯邦所得稅，

和10 美元每周扣留被適合工會會費扣留。

如果工人有3 個或更多受贍養者，

然後附加35 美元被扣留在雇主支付的以外給健康保險的額外的費用投保。

寫一個計畫，

那在這數小時的數量內就已經讀了一周和受贍養者的數量內工作當時輸入和那於是將產量這工人總薪水， 實得每一個扣留金額和淨價支付本周的開支。

僱主和工人在一周內需花費多少時間才能達到供需平衡。只要把支出和收入然後用WHILE 等於零的時候就跳出，然後列出使用工時。

沒有花很多時間看，希望可以幫助你。加油哦！