Question: I need a java code and use new eclipse Create a class named Course that have a field for the course id a default constructor

I need a java code and use new eclipse

Create a class named Course that have

  • a field for the course id
  • a default constructor and a parameterized constructor
  • accessor method that returns the values of course id

Create another class named Student that should have

  • fields for student number, student name, first score, second score and third score
  • a parameterized constructor that accepts a parameter for each of the fields
  • accessor methods for each of the field
  • a calculateAverage method that calculates averages of the first, second, and third score

Create a class named Driver that demonstrates both classes by creating objects. The class should have

  • displayInfo method that accepts two parameters one for the object of Student class and another one for the object of Course

class.

It should ask the user to enter student number, student name, course number, score for the first, score for second and score for third score and display (using displayInfo method) the information as shown in the

sample output given below. You can show GUI output too.

  • Add comments to your code.
  • Create Javadoc documentation for your project.

Sample input/output:

Enter Student number 3001234

Enter student name Emiley

Enter course number CSIS 2175

Enter

75

score

(out

of

100)

for

first score

Enter

score

(out

of

100)

for

second score

77

Enter

score

(out

of

100)

for

third score

89

Emiley 3001234 obtain

Quiz score: 75.0

test score: 77.0 third score: 89.0

Average: 80.33333333333333 in CSIS 2175 course

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!