Question: Java A. Implement the CollegeCourse class. The class contains fields for the course ID (for example, CIS 210 ), credit hours (for example, 3 ),

Java

A. Implement the CollegeCourse class. The class contains fields for the course ID (for example, CIS 210), credit hours (for example, 3), and a letter grade (for example, A). Include get and set methods for each field.

Next, create the Student class containing an ID number and an array of five CollegeCourse objects. Create a get and set method for the student's ID number. Also create a get method that returns one of the student's CollegeCourses; the method takes an integer argument and returns the CollegeCourse in that position (0 through 4). Next, create a set method that sets the value of one of the Students CollegeCourse objects; the method takes two argumentsa CollegeCourse and an integer representing the CollegeCourses position (0 through 4).

B. Write an application that prompts a professor to enter grades for five different courses each for 10 students. Prompt the professor to enter data for one student at a time, including student ID and course data for five courses. Use prompts containing the number of the student whose data is being entered and the course numberfor example, Enter ID for student #1, and Enter course ID #5. Verify that the professor enters only A, B, C, D, or F for the grade value for each 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!