Question: Write a program in java that gets the number of courses a student is enrolled in and calculates the average of the test scores for

Write a program in java that gets the number of courses a student is enrolled in and calculates the average of the test scores for each course.

Display as the header the course # -- Display as the content the test scores Display the average of the scores

For instance if the student is enrolled in 3 courses and has taken 3 exams, the program will ask the student to:

1. Enter the number of courses

2. Enter score for each test (If a course has 3 exams but another course has 4, enter the higher value)

Sample output

Course 1 -------------------------------

Enter score 1: Enter score 2: Enter score 3: The average for course 1 is _______ Course 2 --------------------------------- Enter score 1: Enter score 2: Enter score 3: The average for course 2 is _________ Course 3 ------------------------ Enter score 1: Enter score 2: Enter score 3:

The average for course 3 is __________

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!