This exercise practices using for-loops to process array elements Declare an 10-
ID: 3657794 • Letter: T
Question
This exercise practices using for-loops to process array elements Declare an 10-element array of type int Ask the user for ten integer grades, store them in the array Output the numbers the user entered Output the numbers in reverse order Output the highest and lowest grade Output the average grade Output how many grades are above average > ./a.out Enter a number: 73 Enter a number: 56 Enter a number: 84 Enter a number: 87 Enter a number: 67 Enter a number: 95 Enter a number: 98 Enter a number: 91 Enter a number: 76 Enter a number: 82 You entered: 73 56 84 87 67 95 98 91 76 82 Reverse order: 82 76 91 98 95 67 87 84 56 73 The highest grade is 98 The lowest grade is 56 The average grade is 80 There are 6 grades above average.Explanation / Answer
#include #include void bubbleSort(int *array,int length)//Bubble sort function { int i,j; for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.