Please help me. It goes like this:
Write a program that will determine the income of an employee. An employee is either a part-time or a full-time employee. A part time employee's gross income is computed as the product of his/her hourly rate and the number of hours worked. The gross income of a full time employee is computed as regular pay plus overtime pay. The overtime pay is computed as overtime rate multiplied by the number of overtime hours. The overtime pay should be computed if and only if the overtime hours rendered is not zero..
JavaGr33nh0rn
0
Light Poster
Recommended Answers
Jump to Posthelp you with what? what have you got so far?
Jump to PostDaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rulesPost what you have done so far and someone will help you from there.
Jump to PostUse an if test to control when you print the overtime info...
// pseudo-code if (employee is full time) { print overtime variables }
All 9 Replies
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
JavaGr33nh0rn
0
Light Poster
JavaGr33nh0rn
0
Light Poster
JavaGr33nh0rn
0
Light Poster
JavaGr33nh0rn
0
Light Poster
JavaGr33nh0rn
0
Light Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
JavaGr33nh0rn
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.