cs201_hw1 - CS 201 Fall 2008 Homework Assignment 1 Due...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 201, Fall 2008 Homework Assignment 1 Due: 18:00, November 26, 2008 In this homework, you will implement a student-review-system for an instructor. The instructor offers multiple courses in a semester and each course can be taken by different number of students. The grading scheme of each course is different. Therefore, for each course, different number of grading components (exams) can exist. The student-review-system will have the following functionalities; the details of these functionalities are given below: 1. Add a course 2. Delete a course 3. Add a student 4. Drop a student 5. Add a grade form 6. Delete a grade form 7. Show the list of courses 8. Show detailed information about a particular course 9. Show detailed information about a particular student Add a course: The student-review-system will allow the instructor to add a new course indicating its course id and course name. Since the course ids are unique, the system should check whether or not the specified course id already exists (i.e., whether or not it is the id of another course), and if the course exists, it should not allow the operation and display a warning message. Delete a course: The student-review-system will allow the instructor to delete an existing course indicating its course id. If the course does not exist (i.e., if there is no course with the specified id), the system should display a warning message. Note that this operation will also drop all students from the course of interest. Similarly, all grade forms of the course of interest should be deleted. Add a student: The student-review-system will allow the instructor to add a student to a particular course. For that, the instructor will specify the course id and the information about the student. This information includes the student id and the name of the student. The system should first check whether or not this course exists; if it does not, it should prevent to add a student and display a warning message. The student ids are unique so that two students with the same id do not exist. Thus, you should check whether or not this student has already been added to the specified course. If this is the case, the system should prevent to add a student and display a warning message. Note that if any exams were already given to the class before the time of adding the student, the grades of the student for all these exams will be 0 in the corresponding grade forms. Drop a student: The student-review-system will allow the instructor to drop a particular student from a course. For that, the instructor will specify the course id and the student id. If there is no course with the specified course id, the system should display a warning message. Similarly, if there is no student with the specified student id, the system should display a warning message. Otherwise, it will display the student information including his/her student id and name, and drop the student from the course. Note that in this operation, the system will also delete all grades taken by this student. Also
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/01/2010 for the course CS CS-201 taught by Professor Selimaksoy during the Fall '09 term at Bilkent University.

Page1 / 7

cs201_hw1 - CS 201 Fall 2008 Homework Assignment 1 Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online