An algorithm is required to calculate the total, average, highest and lowest value of a set of positive integers. The algorithm needs to:

  • input the number of integers to be used
  • input the value of each integer
  • output the total of all the integers
  • output the average of all the integers
  • output the highest integer
  • output the lowest integer

An example of the input and output of the algorithm is shown below:

Write the required algorithm in the electronic answer document.

[9 marks]

Enter your answer in the electronic answer