- Using repetition control structure (do while loop), prepare a program that can receive employee id and working hour(s) for three (3) employees.
The program able to:
i. calculate Overtime Payment using formula Overtime = Working hours * 35.00 for each employee
ii. calculate Total Overtime Payment for all employees
iii. calculate Average Of Overtime Payment for each employee
The suggestion output is shown as below.
Enter Employee ID :psp01 Enter working hour :10 Working hour is: 10 Overtime Payment is: RM350
Enter Employee ID psp02 Enter working hour :8 Working hour is: 8 Overtime Payment is: RM280
Enter Employee ID :psp03
Enter working hour 12 Working hour is: 12
Overtime Payment is: RM420
Total Overtime Payment: RM1050 Average Overtime Payment: RM350
Sky_
0
Newbie Poster
Recommended Answers
Jump to PostHow can I get this source code?
It's a learning assignment. You get the source code by writing it yourself - that's how you learn.
If you are trying to write it, and you're stuck, explain what you have done so far and what's blocking you. Someone will …
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
toneewa
81
Junior Poster in Training
dwellfox
0
Newbie 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.