Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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 (O through 4). Next, create a set method that sets the value of one of the Student's CollegeCourse objects; the method takes two arguments - a CollegeCourse and an integer representing the CollegeCourse's position (O 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 number-for example, Enter ID for student \#1, and Enter course ID \#5. Verify that the protessor enters only A, B, C, D, or F for the grade ogramming Exercise 8-7

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

Step: 3

blur-text-image

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Knowledge of project management (PMI) teachings

Answered: 1 week ago