initialise a variable named Min and set its value equal to first item of array. start a for loop to iterate through every element of marks array. check if item



  1. initialise a variable named Min and set its value equal to first item of array.

  2. start a for loop to iterate through every element of marks array.

  3. check if item<>

  4. if 4 is true: set Min = item, else continue

  5. after the loop will finish, Min variable will have lowest marks






For total marks for all the students.



  1. initialise a variable named Sum and set its value equal to zero.

  2. start a for loop to iterate through every element of marks array.

  3. for every iteration, do sum = sum+item

  4. after the loop will finish, sum variable will have total marks of all students



The overall average.



  1. initialise a variable named Sum and set its value equal to zero. initialise another variable count =0.

  2. start a for loop to iterate through every element of marks array.

  3. for every iteration, do sum = sum+item, and increase count by 1.

  4. after the loop will finish, sum variable will have total marks of all students and count will have total count of marks.


5. to calculate average, do average = sum/count.



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here