Homework+Marks+V2

Homework Marks V2
Amend your program Homework Marks so that instead of prompting the user to enter a particular mark, it uses a loop to loop through all 8 marks adding each mark to a total. At the end of the program it should display the total and the average mark.

Here is the pseudocode for this program:


 * 1) Set TotalMarks to 0
 * 2) Loop 8 times
 * 3) Add next element in array to TotalMarks
 * 4) End Loop
 * 5) Calculate AverageMark
 * 6) Display TotalMarks
 * 7) Display AverageMarks