rii) getStudent: accepts a parameter index of type int and returns the object of type Student in studentList at location index.

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
Q)Vii I want the method way to solve this
Request control
ITCS214 Project - Compatibility.
O Search
RUQAYA KADHEM MOHAMED MADAN
Design
Layout
References
Mailings
Review
View
Help
12
- A A Aa v Ap
O Find v
AaBbCcI AAB6CCI AaBb( AaBbC AABBCCD
e Replace
A Select
I U - ab x, x A e A-
1 Normal 1 No Spac. Heading 1 Heading 2 Heading 3
Dictate
Sen
Font
Paragraph
Styles
Editing
Sem
IV) searchstudent: searcnes tne stuaentsList by idINum, passeg as parameter. IT
Voice
the object is found, it returns its location in the studentsList, else returns -1.
v) isEmpty: returns true, if the studentsListis empty, else returns false.
(vi) listSize: returns instance variable size.
(vii) getStudent: accepts a parameter index of type int and returns the object of type
Student in studentList at location index.
(viii) addCourse: accepts an object of type Course as the first parameter and the idNum
of the Student as the second parameter. The Course can be added only if the
(a) Student object with the specified idNum exists in the studentsList,
(b) Course does not exist in the coursesRegistered list for the Student,
(c) After adding the course, the number of credits, do not exceed 18.
If the course is added successfully, return true, else return false.
(ix) deleteCourse: accepts an object of type Course as the first parameter and the
idNum of the Student as the second parameter. The Course can be deleted only if
the Student exists in the studentList and the Course exists in the list of
courses registered for that student.
86
Transcribed Image Text:Request control ITCS214 Project - Compatibility. O Search RUQAYA KADHEM MOHAMED MADAN Design Layout References Mailings Review View Help 12 - A A Aa v Ap O Find v AaBbCcI AAB6CCI AaBb( AaBbC AABBCCD e Replace A Select I U - ab x, x A e A- 1 Normal 1 No Spac. Heading 1 Heading 2 Heading 3 Dictate Sen Font Paragraph Styles Editing Sem IV) searchstudent: searcnes tne stuaentsList by idINum, passeg as parameter. IT Voice the object is found, it returns its location in the studentsList, else returns -1. v) isEmpty: returns true, if the studentsListis empty, else returns false. (vi) listSize: returns instance variable size. (vii) getStudent: accepts a parameter index of type int and returns the object of type Student in studentList at location index. (viii) addCourse: accepts an object of type Course as the first parameter and the idNum of the Student as the second parameter. The Course can be added only if the (a) Student object with the specified idNum exists in the studentsList, (b) Course does not exist in the coursesRegistered list for the Student, (c) After adding the course, the number of credits, do not exceed 18. If the course is added successfully, return true, else return false. (ix) deleteCourse: accepts an object of type Course as the first parameter and the idNum of the Student as the second parameter. The Course can be deleted only if the Student exists in the studentList and the Course exists in the list of courses registered for that student. 86
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
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