Write a program called GradesAverage, which prompts user for the number of students, reads it from the keyboard, and saves it in an int variable called numStudents. It then prompts user for the grades...



USING INTELLIJ IDEA COMMUNITY JAVA





// with comments


Thank you.


Write a program called GradesAverage, which prompts user for the number of students,<br>reads it from the keyboard, and saves it in an int variable called numStudents. It then<br>prompts user for the grades of each of the students and saves them in an int array called<br>grades. Your program shall check that the grade is between 0 and 100.<br>A sample session is as follow:<br>Enter the number of students: 3<br>Enter the grade for student 1: 55<br>Enter the grade for student 2: 108<br>Invalid grade, try again...<br>Enter the grade for student 2: 56<br>Enter the grade for student 3: 57<br>The average is 56.0<br>

Extracted text: Write a program called GradesAverage, which prompts user for the number of students, reads it from the keyboard, and saves it in an int variable called numStudents. It then prompts user for the grades of each of the students and saves them in an int array called grades. Your program shall check that the grade is between 0 and 100. A sample session is as follow: Enter the number of students: 3 Enter the grade for student 1: 55 Enter the grade for student 2: 108 Invalid grade, try again... Enter the grade for student 2: 56 Enter the grade for student 3: 57 The average is 56.0

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here