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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started