Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. How will you, as city manager, handle these requests?

Answered: 1 week ago