(Solved) : Write Program Gets List Grades User Counts Number Grades Average Grade Begin Program Askin Q43913275 . . .
Write a program that gets a list of grades from the user and counts the number of grades above the average grade. Begin your program by asking the user to enter the number of grades. Store this value in a variable called numofGrades. If the number is a negative number or zero, you program should print some message and stop. Next, create an array of size numofGrades. Then you will read numofGrades values representing student grades from the keyboard and place them into the array. Next, find the average grade of all the values entered, and print this value to the screen. Finally, count the grades that are above the average grade. Display each individual grade that is above the average grade, and display the count of such grades. For example: Please enter the number of grades: 4 Enter a grade: 80 Enter a grade: 65 Enter a grade: 78 Enter a grade: 90 The average grade is: 78.25 The grades above the average grade are: 80 90 for a total of 2 grades Show transcribed image text Write a program that gets a list of grades from the user and counts the number of grades above the average grade. Begin your program by asking the user to enter the number of grades. Store this value in a variable called numofGrades. If the number is a negative number or zero, you program should print some message and stop. Next, create an array of size numofGrades. Then you will read numofGrades values representing student grades from the keyboard and place them into the array. Next, find the average grade of all the values entered, and print this value to the screen. Finally, count the grades that are above the average grade. Display each individual grade that is above the average grade, and display the count of such grades. For example: Please enter the number of grades: 4 Enter a grade: 80 Enter a grade: 65 Enter a grade: 78 Enter a grade: 90 The average grade is: 78.25 The grades above the average grade are: 80 90 for a total of 2 grades
Expert Answer
Answer to Write a program that gets a list of grades from the user and counts the number of grades above the average grade. Begin …
OR