CSC113_Lab2 - (String id  void displayCoursesL Display...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
KSU / CCIS CSC113 Lab 2 Array Of Objects Date: 16 20/10/2010 Create class Course including the following: courseId . (example: “CSC113”) courseName . numberOfStudents . And a build the required setter and getter methods, and simple constructor. Create class CoursesGroup including the following: courses : an array of type Course which has Maximum to 20 Courses. coursesNbr : number of courses in array courses. Implement the Constructor and the following methods: Boolean addNewCourse (String id, String CourseName, int nbrOfStudents). Course searchCourse (String id). Boolean deleteCourse (String id). int getCourseNumberOfStudents
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (String id).  void displayCoursesL () : Display courses having less than 10 students. Write a main class to test the class CoursesGroup. The class main should implements the following menu: Menu 1- Add New Course. 2- Search a Course. 3- Delete Course. 4- Display Course number of students. 5- Display the Course that has the maximum students number. (here you must write the code in main of choice no. 5) 6- Display Courses having less than 10 students. 7- Exit. Enter Choice: Note: Display the proper prompt messages to the end user. Prepared By: Abdulaziz Almoharib. Reviewed By: Dr. Ali Al Zaart....
View Full Document

This note was uploaded on 11/28/2011 for the course COMPUTER S 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Ask a homework question - tutors are online