Professional Documents
Culture Documents
Programming Exercises 2 and 8. Pp. 413
Programming Exercises 2 and 8. Pp. 413
For i = 0 to 6
lotteryNumber[i] = random(0, 9)
End For
For i = 0 to 6
Display lotteryNumber[i]
End For
End
Start
For i = 0 to SIZE - 1
Display "Enter hours worked for employee ID", empId[i], ":"
Input hours[i]
Display "Enter hourly pay rate for employee ID", empId[i], ":"
Input payRate[i]
End For
For i = 0 to SIZE - 1
wages[i] = hours[i] * payRate[i]
End For
For i = 0 to SIZE - 1
Display "Employee ID:", empId[i]
Display "Hours Worked:", hours[i]
Display "Hourly Pay Rate:", payRate[i]
Display "Gross Wages:", wages[i]
End For
End