CS 596 Client-Server Programming
Assignment 6 Protocol Design
[To Assignment Index]
San Diego State University -- This page last updated March 28, 1996
Assignment 6 - Grade Reporter Protocol
Due April 16
1) Design a protocol for GR, the Client-Server University's future grade reporter client/server system. GR is used by students during the semester to review their grades in the classes they are taking. All students are given unique login names and passwords when the enroll in CSU. After correctly login on, students can request to see their grades in one or all of their classes. A student's grades include the score and name of each grade event. For example Pete Chen's grades are given below.
name | course | hwork | exam1 | exam2 | final | as1 | as2 | as3 |
Chen, Pete | 89 | 92 | 89 | 57 | 79 | 10 | 20 | 29 |
A
client can request a summary of the grades in the class. This information
includes average score, maximum score obtained, minimum score obtained, total
points possible for each item. This summary can be requested of a class without
the user having to be in the class or even part of the university. Hence the
user does not need a login or password to obtain this information. A summary
might look like:
name | course | hwork | exam1 | exam2 | final | as1 | as2 | as3 |
Points Possible | 100 | 100 | 95 | 100 | 85 | 15 | 20 | 40 |
Max score | 95 | 99 | 93 | 98 | 85 | 14 | 18 | 38 |
Average score | 84 | 89 | 76 | 84 | 72 | 13 | 13 | 20 |
Min score | 12 | 55 | 34 | 44 | 13 | 3 | 8 | 12 |
A client can request the grades of all students in a class. This information is
provided without any student names. A student must be in a class to obtain this
information about the class. This could look like:
course | hwork | exam1 | exam2 | final | as1 | as2 | as3 |
87 | 92 | 85 | 55 | 74 | 10 | 18 | 29 |
92 | 98 | 98 | 55 | 78 | 10 | 20 | 30 |
83 | 91 | 78 | 51 | 72 | 8 | 21 | 29 |
89 | 92 | 89 | 57 | 79 | 10 | 20 | 29 |
74 | 68 | 59 | 61 | 55 | 10 | 0 | 29 |
80 | 95 | 68 | 55 | 46 | 10 | 20 | 29 |
79 | 93 | 67 | 54 | 50 | 10 | 18 | 30 |
88 | 92 | 85 | 53 | 84 | 9 | 20 | 29 |
92 | 92 | 86 | 60 | 85 | 9 | 21 | 29 |
The protocol is not required to use the above formats.
Instructors are the only people allowed to add or change the grades. Each
instructor has a login and password. Instructors need to be able to:
- Enter a new class into GR
- Add students to an existing class in GR
- Remove a student from an existing class in GR
- Change existing grades for a student in an existing class in GR
- Add a new graded event (exams, assignments, etc. ) to an existing class in
GR
- Enter grades for all students for a new graded event
- View all grades for all students in the class with student names
displayed
Instructors can only change data for a class they teach.
What to turn in!
Three copies of the description of your protocol.