Question: This is in Java 1. Create an application called registrar that has the following classes: a. A student class that minimally stores the following data

This is in Java

1. Create an application called registrar that has the following classes:

a. A student class that minimally stores the following data fields for a student:

Name

Student id number

Number of credits

Total grade points earned

And this class should also be provides the following methods:

A constructor that initializes the name and id fields

A method that returns the student name field

A method that returns the student ID field

Methods to set and retrieve the total number of credits

Methods to set and retrieve the total number of grade points earned.

A method that returns the GPA (grade points divided by credits) b. An instructor class that minimally stores the following data fields for an instructor:

Name

Faculty id number

Department The following methods should be provided:

A constructor that initializes the name and id fields

Methods to set and retrieve the instructors department. c. A course class that minimally stores the following data for a course:

Name of the course

Course registration code

Maximum number of 50 students

Instructor Number of students

Students registered in the course (array) The following methods should also be provided

A constructor that initialize the name, registration code, and maximum number of students

Methods to set and retrieve the instructor

A method to search for a student in the course; the search should be based on an ID number.

A method to add a student to the course.

A method to remove a student from the 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!