57,209 views
6 votes
6 votes
Write the code for the following problem.

Add a function to problem to display the last name and highest, last name and lowest and average exam score. Hint: for highest initialize a variable to 0 (high_var). If the array value is higher than the high_var then set high_var to the array value and set high_index to the position of the array. Proceed through the array until you get to the end. Do the same for finding the lowest using low_var set to 999 (higher than the highest value). For the average score, sum all the exam scores as you proceed through the loop. Use a for loop to go through each occurrence of the arrays. Note you can do all this with one for loop but if it makes more sense to you to use multiple for loops that is ok too.

User Jijinp
by
3.0k points

1 Answer

27 votes
27 votes

Answer:

no

Step-by-step explanation:

User Praxis Ashelin
by
3.0k points