This is the sample output when using the the
first sample input file. Note that the commands entered from STDIN
are in bold here. Depending on your shell, they may or may not be
actually seen if you redirect that file to your script.
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 3
Enter the new student's last name: Lalli
Enter the new student's first name: Paul
Enter Paul Lalli's RCS Id: lallip
Enter Paul Lalli's RIN: 660066466
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 3
Enter the new student's last name: Smith
Enter the new student's first name: John
Enter John Smith's RCS Id: smithj
Enter John Smith's RIN: 123456789
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 3
Enter the new student's last name: Jones
Enter the new student's first name: Mister
Enter Mister Jones's RCS Id: jonesm
Enter Mister Jones's RIN: 987654321
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 3
Enter the new student's last name: McGuire
Enter the new student's first name: Justin
Enter Justin McGuire's RCS Id: mcguij2
Enter Justin McGuire's RIN: 867530999
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 3
Enter the new student's last name: Foster
Enter the new student's first name: David
Enter David Foster's RCS Id: fosted
Enter David Foster's RIN: 474747474
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 3
Enter the new student's last name: Conlan
Enter the new student's first name: Richard
Enter Richard Conlan's RCS Id: conlar
Enter Richard Conlan's RIN: 864520193
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 2
A) Sort by Last Name
B) Sort by Final Grade
a
Richard Conlan 0
David Foster 0
Mister Jones 0
Paul Lalli 0
Justin McGuire 0
John Smith 0
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: lallip
H)omework Grade
E)xam Grade
h
Enter the new grade: 100
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: 660066466
H)omework Grade
E)xam Grade
h
Enter the new grade: 95
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: lallip
H)omework Grade
E)xam Grade
e
Enter the new grade: 80
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: mcguij2
H)omework Grade
E)xam Grade
h
Enter the new grade: 79
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: mcguij2
H)omework Grade
E)xam Grade
e
Enter the new grade: 100
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: fosted
H)omework Grade
E)xam Grade
e
Enter the new grade: 100
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: fosted
H)omework Grade
E)xam Grade
e
Enter the new grade: 105
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: 123456789
H)omework Grade
E)xam Grade
H
Enter the new grade: 59
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: 123456789
H)omework Grade
E)xam Grade
h
Enter the new grade: 76
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 5
Please enter a student: smithj
H)omework Grade
E)xam Grade
E
Enter the new grade: 85
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 2
A) Sort by Last Name
B) Sort by Final Grade
A
Richard Conlan 0
David Foster 102.5
Mister Jones 0
Paul Lalli 92.25
Justin McGuire 87.4
John Smith 74.5
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 2
A) Sort by Last Name
B) Sort by Final Grade
B
David Foster 102.5
Paul Lalli 92.25
Justin McGuire 87.4
John Smith 74.5
Richard Conlan 0
Mister Jones 0
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 1
Please enter a student: lallip
Paul Lalli: lallip - 660066466
Homeworks: 100, 95
Exams: 80
Final Grade by 70/30: 92.25
Final Grade by 60/40: 90.5
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 1
Please enter a student: jonesm
Mister Jones: jonesm - 987654321
Homeworks:
Exams:
Final Grade by 70/30: 0
Final Grade by 60/40: 0
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 1
Please enter a student: 867530999
Justin McGuire: mcguij2 - 867530999
Homeworks: 79
Exams: 100
Final Grade by 70/30: 85.3
Final Grade by 60/40: 87.4
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 1
Please enter a student: fosted
David Foster: fosted - 474747474
Homeworks:
Exams: 100, 105
Final Grade by 70/30: 102.5
Final Grade by 60/40: 102.5
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 1
Please enter a student: conlar
Richard Conlan: conlar - 864520193
Homeworks:
Exams:
Final Grade by 70/30: 0
Final Grade by 60/40: 0
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 1
Please enter a student: smithj
John Smith: smithj - 123456789
Homeworks: 59, 76
Exams: 85
Final Grade by 70/30: 72.75
Final Grade by 60/40: 74.5
-------------------------------
1) Print Student Info
2) Print All Students
3) Add Student
4) Remove Student
5) Add Grade
6) Change Grade
0) Save changes and exit
Enter an option: 0
Please enter a filename in which to store the data: samplegrades.txt
Changes saved to samplegrades.txt