Create a CollegeCourse class.

This is the question I am stuck on –

A. Create a 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. Create a Student class containing an ID number and an array of five CollegeCourse objects.

Create a get and set method for the Student 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 Student’s CollegeCourse objects; the method takes two arguments—a CollegeCourse and an integer representing the CollegeCourse’s 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 number—for example, Enter ID for student #1, and Enter course ID #5. Verify that the professor enters only ABCD, or F for the grade value for each course. After all the data has been entered, display all the information in order by student then course as shown:

Student #1 ID #101

CS1 1 — credits. Grade is A

CS2 2 — credits. Grade is B

CS3 3 — credits. Grade is C

CS4 4 — credits. Grade is D

CS5 5 — credits. Grade is F

This is what I am given to start with – 

public class CollegeCourse {
    private String courseID;
    private int credits;
    private char grade;
    public String getID() {
    }
    public int getCredits() {
    }
    public char getGrade() {
    }
    public void setID(String idNum) {
    }
    public void setCredits(int cr) {
    }
    public void setGrade(char gr) {
    }
}
——————————————-
import java.util.*;
public class InputGrades {
    public static void main(String[] args) {
        // Write code here
    }
}

——————————————–

public class Student {
    private int stuID;
    private CollegeCourse[] course = new CollegeCourse[5];

    public int getID() {
    }
    public CollegeCourse getCourse(int x) {
    }

    public void setID(int idNum) {
    }
    public void setCourse(CollegeCourse c, int x) {
    }
}

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more