work calculator and arrays
hi,
i have to program i work calculator which prompts the user for the days and then ask how many hours the person worked a day.
the expected output is:
The program calculates the total hours worked during
a specific period and the average length of a day.
How many days: for example i put 3
Enter the working hours for day 1: x
Enter the working hours for day 2: x
Enter the working hours for day 3: x
Total hours worked: xx.x
Average length of day: x.x
Hours entered: x.x x.x x.x
theres also a hint:It is easiest to implement the program using an array with 30 elements.
what does it mean? array to what?, im new to arrays and cant find any help or examples with that kind of program, even though i understand how arrays work. i dont get what does that mean. do i have to link for example dailyhoursday[0] to 6.6 hrs and dailyhoursday[1] to 8.6 etc?
thanks for help