Question: Figure below shows code of program that prints the sum ,average,or maximum number in array.Building the program however results in several errors and warning messages

Figure below shows code of program that prints the sum ,average,or maximum number in array.Building the program however results in several errors and warning messages that resulted in the program not working as intended . correct the code by listing the line numbers,explain the errors AND suggest corrections for the error . (15marks)

Figure below shows code of program that prints the sum ,average,or maximum

#include answer) { answer = array[i]; Be, 31 else { printf("Invalid option"); return-99 } 34. 35. 37. printf("Answer: '); return : 39

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!