I need to put this in pseudocode and then write the program:
 
Develop a program that uses a while structure to determine the gross pay for each of 
several employees.  The company pays "straight time" for the 1st 40 hours worked by 
each employee and pays "time and a half" for hours in excess of 40 hours. You are 
given a list of the employees , the number of hours each employee worked last week and 
the hourly rate of each employee. Your program should input this information for each 
employee and should determine and display the employee's gross pay.
 
This is what  I got up tp so far in the the pseudocode. Is this right?:
 
Determine Gross Pay of employees
Initialize Number of Hours Worked
INitialize hourly rate of each employee
Initialize number of employees
Initialize straight- time is first 40 hours worked
Initialize time and a half is excess of 40 hours
 
Input number of hours worked and hourly rate
 
While hours worked is less than or equal to 40
Input Gross Pay= Rate * Hours
 
While hours worked is more than 40
Input Gross Pay = Rate * 1 1/2 Hours
 
 
 
 
 
Print Gross Pay of employess for straight- time
Print Gross Pay of employees for time and a half
 
 
This is all I have so far , I know some is missing can you help me please . It will be 
greatly appreciated.
Thank You
 
 
 


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Reply via email to