Please help me.I'm new to C++ ! I stuck on this one!

Write a payroll program that prompts for the number of hours an employee worked, as well as the employee’s pay rate. If the employee worked for 40 hours or less, the gross pay is calculated by multiplying the number of hours worked by the pay rate. If the number of hours worked by the employee exceeds 40 hours, the employee should receive regular pay for the first 40 hours, and receive time-and-a-half pay for the hours in excess of 40. Display the calculated gross pay on the screen.
Continue to prompt for similar data for more employees and have the gross pay of each employee displayed, until there is no more employee data to process. Then display “Good Bye”.

Your solution must be separated into three
source files (Interface, Implementation, and Test)
Last edited on
I'm learning on the book "How to Program (C++) 9th"
Deitel

I'm stuck with chapter4 by using if...else
how can i do cpp, cpp, and .h files with these codes in?
someone plz help
Surely you don't expect somebody to write this whole program for you. Post your attempt and from there we can help you.
Topic archived. No new replies allowed.