Payroll
Write a C++ program which prompts the user to enter Employee's Name, hours worked and rate per hour..
calculate, gross, tax, net.
display:
Name, Hours worked, Rate per hour, Gross, Rate per hour, NET:
Instructions:
note: declare the name as a string
declare:
string Name;
cin>>Name;
Calculate the gross:
If the employee works more than 40 hours, the excess will be treated as overtime (overtime is calculated by multiplying the excess hours * rate * 1.5.
gross = ( hours - 40) *.15* rate rate per hour+ (40*Rate per hour)
otherwise the gross will be: gross= hours * rate per hour.
let the tax percentage be 15% of gross.
tax per employee is calculated: Tax = tax percentage * gross.
calculate the NET: NET = Gross -Tax
let the program run for 5 times (assuming you have only 5 employees).for every employee: display the output as follow for every employee:
Name:
Hours worked:
Rate per hour:
Gross:
SUBMIT the source code and the output
rate per hour:
NET:
1
Expert's answer
2020-04-24T11:38:19-0400
Dear silvia, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment