Ok, I am trying to understand what is being asked next / how to do it for my Java assignnment... Here's is how it starts and what I understand- "Create a Student class containing an ID number and an array of 5 CollegeCourse subjects. Create a get and set method for the student ID number."...Here's what I have so far: public class Student { private int sID;   CollegeCourse[]obj = new CollegeCourse[5];   public int getSID() { return sID; } public void setSID(int SIDNum) ______________ Now, what I don't understand is the rest of what it ask for which is this- "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 CollegeCourses; the method takes 2 arguments- a CollegeCourse and an integer representing the CollegeCourse's position (0 through 4). Can you help me understand this request/ break down what this is asking for?  I'm super new to Java and stupidly took a flex "on your own" course which was not a good idea at all. I'm trying hard to get through it and really understand what I am being asked to do and how to do it. I'd really apprecate any help.  -Also, below is the first part of the assignment I understand and that leads into the 2nd part I don't understand about on the Student class. public class CollegeCourse { private String courseID; private int creditHours; private char letterGrade; public String getCourseID() { return courseID; } public int getCreditHours() { return creditHours; } public char getLetterGrade() { return letterGrade; } public void setCourseID(String idNum) { courseID=idNum; } public void setCreditHrs(int ch) { creditHrs=ch; } public void setLetterGrade(char gd) { letterGrade=gd; } }

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Ok, I am trying to understand what is being asked next / how to do it for my Java assignnment...

Here's is how it starts and what I understand-

"Create a Student class containing an ID number and an array of 5 CollegeCourse subjects. Create a get and set method for the student ID number."...Here's what I have so far:

public class Student

{

private int sID;

 

CollegeCourse[]obj = new CollegeCourse[5];

 

public int getSID()

{

return sID;

}

public void setSID(int SIDNum)

______________

Now, what I don't understand is the rest of what it ask for which is this-

"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 CollegeCourses; the method takes 2 arguments- a CollegeCourse and an integer representing the CollegeCourse's position (0 through 4).

Can you help me understand this request/ break down what this is asking for?  I'm super new to Java and stupidly took a flex "on your own" course which was not a good idea at all. I'm trying hard to get through it and really understand what I am being asked to do and how to do it. I'd really apprecate any help. 

-Also, below is the first part of the assignment I understand and that leads into the 2nd part I don't understand about on the Student class.

public class CollegeCourse
{

private String courseID;
private int creditHours;
private char letterGrade;

public String getCourseID()
{
return courseID;
}

public int getCreditHours()
{
return creditHours;
}

public char getLetterGrade()
{
return letterGrade;
}

public void setCourseID(String idNum)
{

courseID=idNum;
}

public void setCreditHrs(int ch)
{

creditHrs=ch;
}

public void setLetterGrade(char gd)
{
letterGrade=gd;
}
}

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY