Module main() // Local variables Constant Integer SIZE = 7 Declare Integer employee[SIZE] = 56588, 45201, 78951, 87775, 84512, 13028, 75804 Declare Integer hoursWork[SIZE], index Declare Real payRate[SIZE], wages[SIZE], totalWages = 0 // Get name For index = 0 to SIZE - 1 Display “For employee number “, employee[index], “: “ Display “Enter hours: “ Input hoursWork[index] Display “Enter pay rate: “ Input payRate[index] Set wages[index] = hoursWork[index] * payRate[index] Set totalWages = totalWages + wages[index] End For // show gross wages For index = 0 to SIZE – 1 Display “For employee number “, employee[index], “, wages “,wages[index] End For Display “Total wages “,totalWages End Module Flowchart please
Module main()
// Local variables
Constant Integer SIZE = 7
Declare Integer employee[SIZE] = 56588, 45201, 78951, 87775,
84512, 13028, 75804
Declare Integer hoursWork[SIZE], index
Declare Real payRate[SIZE], wages[SIZE], totalWages = 0
// Get name
For index = 0 to SIZE - 1
Display “For employee number “, employee[index], “: “
Display “Enter hours: “
Input hoursWork[index]
Display “Enter pay rate: “
Input payRate[index]
Set wages[index] = hoursWork[index] * payRate[index]
Set totalWages = totalWages + wages[index]
End For
// show gross wages
For index = 0 to SIZE – 1
Display “For employee number “, employee[index],
“, wages “,wages[index]
End For
Display “Total wages “,totalWages
End Module
Flowchart please

Step by step
Solved in 2 steps with 1 images









