CPSC 333: Process Specification for Process #1.3 in Student Information System, Version One

Location: [Student Information Systems] [Version One] [Data Flow Diagram] Process Specification for Process #1.3


Process Name: Pass Student
Process Number: 1.3
Inputs: ID number, student
Outputs: status message, student

Assumptions:

None

Error Conditions:

  1. The ID number received from the Instructor is syntactically incorrect.
  2. The ID number is not in use.
  3. The student corresponding to the ID number has already passed the course.

Processing Details:

if ID number is syntactically correct then
  Attempt to read a `student' with the given ID number from the data store
  if the attempt to read was successful then
    if student[status] = `registered' then
      student[status] := `passed'
      Write `student' back to the data store
      status message := `ok'
    else
      status message := `Student has already passed'
    end if
  else
    status message := `ID number is not in use'
  end if
else
  status message := `ID number is syntactically incorrect'
end if

[Return to Data Flow Diagram]


Department of Computer Science
University of Calgary

Office: (403) 220-5073
Fax: (403) 284-4707

eberly@cpsc.ucalgary.ca