📄 expectedoutputregistsystem.txt
字号:
Data for use with this example:
Professors
Albert Einstien, password: e=mc^2, department: 345
Mark Keil, password: 3sat, department: 865
Eric Neufeld, password: AI, department: 865
Registrar
Fred Smith, password: regis
Administrators
Joe Blow, password: admin
Students
Chris Worman, number: 934555, password: 220279
Jane Smith, number: 123456, password: 654321
Bob Newhart, number: 987654, password: 987654
Departments:
Computer Science, code: 865, type: 1
Physics, code: 345, type: 2
Courses:
Computer Science Courses:
Number: 360, Credits: 3, "A study of machines and algorithms."
Section: Section number: 2, MWF 9:30-10:30, size: 30
Number: 317, Credits: 3, "An Introduction to Artificial Intelligence."
Section: Section number: 1, TTH 11:30-13:00, size: 120
Physics Courses:
Number: 327, Credits: 3, "An introduction to waves and optics."
Section: Section number: 2, MWF 11:30-12:30, size: 20
What type of user are you :
***************************
1. Instructor
2. Dept./College Admin
3. Student
4. Registrar
99. Quit
Enter your choice : 3
Enter student number : 123456
Enter your personal access code : 654321
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 6
Enter the department number : 865
Enter the course number : 360
The current open sections are :
Section Number : 1
No instructor assigned yet
No room appointed yet
Number enrolled : 0
Section Details:
Term : 2
Time : 9:30 - 10:30
Days : MWF
Enrollment Limit : 30
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 1
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 2
Current courses are :
Student Name : Jane Smith
Student Number : 123456
Registration Date : 21/6/2000
Course Information
Department Number : 865
Course Number : 360
Section Number : 1
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 7
Total fees : 300.0
Total paid : 0.0
_________________________
Total Owing : 300.0
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 6
Enter the department number : 345
Enter the course number : 327
The current open sections are :
Section Number : 1
No instructor assigned yet
No room appointed yet
Number enrolled : 0
Section Details:
Term : 2
Time : 11:30 - 12:30
Days : MWF
Enrollment Limit : 20
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 1
Enter the department number : 345
Enter the course number : 327
Enter the section number : 1
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 2
Current courses are :
Student Name : Jane Smith
Student Number : 123456
Registration Date : 22/6/2000
Course Information
Department Number : 345
Course Number : 327
Section Number : 1
Student Name : Jane Smith
Student Number : 123456
Registration Date : 21/6/2000
Course Information
Department Number : 865
Course Number : 360
Section Number : 1
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 7
Total fees : 650.0
Total paid : 0.0
_________________________
Total Owing : 650.0
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 99
What type of user are you :
***************************
1. Instructor
2. Dept./College Admin
3. Student
4. Registrar
99. Quit
Enter your choice : 2
Enter your name : Joe Blow
Enter your password : admin
20. Student's grades
21. Class list
22. Check course section enrollment
40. Set course-sections enrollment limit
41. Assign instructor to course section
42. Assign a room to a course section
99. Quit
Enter a choice : 21
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
The current students are :
Student Name : Jane Smith
Student Number : 123456
Registration Date : 21/6/2000
20. Student's grades
21. Class list
22. Check course section enrollment
40. Set course-sections enrollment limit
41. Assign instructor to course section
42. Assign a room to a course section
99. Quit
Enter a choice : 22
Enter the department number : 345
Enter the course number : 327
Enter the section number : 1
The enrollement limit is :20
20. Student's grades
21. Class list
22. Check course section enrollment
40. Set course-sections enrollment limit
41. Assign instructor to course section
42. Assign a room to a course section
99. Quit
Enter a choice : 41
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
Enter the name for the instructor : Mark Keil
20. Student's grades
21. Class list
22. Check course section enrollment
40. Set course-sections enrollment limit
41. Assign instructor to course section
42. Assign a room to a course section
99. Quit
Enter a choice : 42
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
Enter a room : arts102
20. Student's grades
21. Class list
22. Check course section enrollment
40. Set course-sections enrollment limit
41. Assign instructor to course section
42. Assign a room to a course section
99. Quit
Enter a choice : 99
What type of user are you :
***************************
1. Instructor
2. Dept./College Admin
3. Student
4. Registrar
99. Quit
Enter your choice : 4
Enter your name : Fred Smith
Enter your password : regis
1. Enroll a student in a course
2. List courses in which a student is registered
3. Change a student's PAC
4. Withdraw a student from a course
5. View a student's grades
6. List open sections for a course
7. Show amount that a student owes
21. View a class list
22. Check section enrollment
60. Add course section
61. Change section limit
62. Change a student's grade
63. Record a student's grade
64. Record a student's payment
99. Quit
Enter choice : 21
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
The current students are :
Student Name : Jane Smith
Student Number : 123456
Registration Date : 21/6/2000
1. Enroll a student in a course
2. List courses in which a student is registered
3. Change a student's PAC
4. Withdraw a student from a course
5. View a student's grades
6. List open sections for a course
7. Show amount that a student owes
21. View a class list
22. Check section enrollment
60. Add course section
61. Change section limit
62. Change a student's grade
63. Record a student's grade
64. Record a student's payment
99. Quit
Enter choice : 63
Enter a student number : 123456
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
Enter the student's mark : 90
1. Enroll a student in a course
2. List courses in which a student is registered
3. Change a student's PAC
4. Withdraw a student from a course
5. View a student's grades
6. List open sections for a course
7. Show amount that a student owes
21. View a class list
22. Check section enrollment
60. Add course section
61. Change section limit
62. Change a student's grade
63. Record a student's grade
64. Record a student's payment
99. Quit
Enter choice : 7
Enter a student number : 123456
Total fees : 650.0
Total paid : 0.0
_________________________
Total Owing : 650.0
1. Enroll a student in a course
2. List courses in which a student is registered
3. Change a student's PAC
4. Withdraw a student from a course
5. View a student's grades
6. List open sections for a course
7. Show amount that a student owes
21. View a class list
22. Check section enrollment
60. Add course section
61. Change section limit
62. Change a student's grade
63. Record a student's grade
64. Record a student's payment
99. Quit
Enter choice : 64
Enter a student number : 123456
Enter the amount paid : 650
1. Enroll a student in a course
2. List courses in which a student is registered
3. Change a student's PAC
4. Withdraw a student from a course
5. View a student's grades
6. List open sections for a course
7. Show amount that a student owes
21. View a class list
22. Check section enrollment
60. Add course section
61. Change section limit
62. Change a student's grade
63. Record a student's grade
64. Record a student's payment
99. Quit
Enter choice : 5
Enter a student number : 123456
The current grades recorded are :
Class Information :
Department Number : 865
Course Number : 360
Section Number : 1
Year : 2000
Term : 1
Credits : 3
Grade : 90
1. Enroll a student in a course
2. List courses in which a student is registered
3. Change a student's PAC
4. Withdraw a student from a course
5. View a student's grades
6. List open sections for a course
7. Show amount that a student owes
21. View a class list
22. Check section enrollment
60. Add course section
61. Change section limit
62. Change a student's grade
63. Record a student's grade
64. Record a student's payment
99. Quit
Enter choice : 2
Enter a student number : 123456
current courses are :
Student Name : Jane Smith
Student Number : 123456
Registration Date : 22/6/2000
Course Information
Department Number : 345
Course Number : 327
Section Number : 1
Student Name : Jane Smith
Student Number : 123456
Registration Date : 21/6/2000
Course Information
Department Number : 865
Course Number : 360
Section Number : 1
1. Enroll a student in a course
2. List courses in which a student is registered
3. Change a student's PAC
4. Withdraw a student from a course
5. View a student's grades
6. List open sections for a course
7. Show amount that a student owes
21. View a class list
22. Check section enrollment
60. Add course section
61. Change section limit
62. Change a student's grade
63. Record a student's grade
64. Record a student's payment
99. Quit
Enter choice : 99
What type of user are you :
***************************
1. Instructor
2. Dept./College Admin
3. Student
4. Registrar
99. Quit
Enter your choice : 1
Enter your name : Mark Keil
Enter your password : 3sat
20. Student's grades
21. View a class list
22. Check section enrollment
99. Quit
Enter a choice : 20
Enter a student number : 123456
The current grades recorded are :
Class Information :
Department Number : 865
Course Number : 360
Section Number : 1
Year : 2000
Term : 1
Credits : 3
Grade : 90
20. Student's grades
21. View a class list
22. Check section enrollment
99. Quit
Enter a choice : 21
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
The current students are :
Student Name : Jane Smith
Student Number : 123456
Registration Date : 21/6/2000
20. Student's grades
21. View a class list
22. Check section enrollment
99. Quit
Enter a choice : 22
Enter the department number : 865
Enter the course number : 360
Enter the section number : 1
The enrollement limit is :30
20. Student's grades
21. View a class list
22. Check section enrollment
99. Quit
Enter a choice : 99
What type of user are you :
***************************
1. Instructor
2. Dept./College Admin
3. Student
4. Registrar
99. Quit
Enter your choice : 3
Enter student number : 123456
Enter your personal access code : 654321
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 4
Enter the department number : 345
Enter the course number : 327
Enter the section number : 1
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 2
Current courses are :
Student Name : Jane Smith
Student Number : 123456
Registration Date : 22/6/2000
THIS STUDENT HAS WITHDRAWN FROM THE COURSE
Withdrawal date : 23/6/2000
Course Information
Department Number : 345
Course Number : 327
Section Number : 1
Student Name : Jane Smith
Student Number : 123456
Registration Date : 21/6/2000
Course Information
Department Number : 865
Course Number : 360
Section Number : 1
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 5
The current grades recorded are :
Class Information :
Department Number : 865
Course Number : 360
Section Number : 1
Year : 2000
Term : 1
Credits : 3
Grade : 90
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 7
Total fees : 300.0
Total paid : 650.0
_________________________
Total Owing : -350.0
1. Enroll in a course
2. List courses in which you are registered
3. Change PAC
4. Drop course
5. List grades
6. List open sections
7. Show amount owing
99. Quit
Enter choice : 99
What type of user are you :
***************************
1. Instructor
2. Dept./College Admin
3. Student
4. Registrar
99. Quit
Enter your choice : 99
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -