Develop a Java program and run for the following: the program asks the user to enter students grades for The first course contains 5 students, the second 7 students. For the third course, the user input the grades until -1 entered (use while loop). Use three types of loops (for-loop, while-loop, do-while) for the three courses. Then output/print the average grade of each one of the three classes. {note: this will be a complete program with one class and one method in the class the main method. Submit one sample run (screenshot).

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 14E
icon
Related questions
Question

 

 

 

Develop a Java program and run it for the following: the program asks the user to enter students' grades for three courses.
The first course contains 5 students, the second 7 students. For the third course, the user input the grades until -1 entered
(use while loop). Use three types of loops (for-loop, while-loop, do-while) for the three courses. Then output/print the
average grade of each one of the three classes. {note: this will be a complete program with one class and one method in the
class, the main method}. Submit one sample run (screenshot).
Transcribed Image Text:Develop a Java program and run it for the following: the program asks the user to enter students' grades for three courses. The first course contains 5 students, the second 7 students. For the third course, the user input the grades until -1 entered (use while loop). Use three types of loops (for-loop, while-loop, do-while) for the three courses. Then output/print the average grade of each one of the three classes. {note: this will be a complete program with one class and one method in the class, the main method}. Submit one sample run (screenshot).
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr