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).
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
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).](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0de11226-d786-4864-ab72-d5474c5f3518%2Feb601cb0-2730-4378-bc6d-33cac93f3c91%2Fupd1oc6_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr