View the step-by-step solution to:

Question

Calculate the salary that employee get based on number of working. Rate of the

payment is RM8.00 per hour

but the salary will be deducted with 10% KWSP. By using

a repetition control structure, write pseudo code and design a flowchart using

problem solving tools to calculate the total salary of 5 employees and the average

salary of the employee.

Top Answer

View the full answer
Untitled Diagram (15).png

Start
int count=0;
double salary
double total;
False
count<=5
True
Get user hours
cout< <total;
cout< <total/5;
salary=userHours*8;
salary=salary-(salary*0.10);
count+ +:
total+=salary

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question