This code asks for the 7 employee names, worked hours and pay rate. It will then calculate their earnings and print the results in a table for each employee.
This code works with a
for loop. You can modify the number of employees and the IDs to add more or reduce the number of them.