StudentManagerPro (SMP) is a desktop app for secondary school teachers in Singapore to manage their students, optimized for use via a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, SMP can get your contact management tasks done faster than traditional GUI apps.
Ensure you have Java 17
or above installed in your computer.
Download the latest .jar
file from here.
Copy the file to the folder you want to use as the home folder for StudentManagerPro.
Open a command terminal, cd
into the folder you put the jar file in, and use the java -jar studentmanagerpro.jar
command to run the application.
A GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.
Type the command in the command box and press Enter to execute it. e.g. typing help
and pressing Enter will open the help window.
Some example commands you can try:
list
: Lists all student contacts.
add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01 c/1A s/M r/1
: Adds a student named John Doe
to the student list.
delete 3
: Deletes the 3rd student contact shown in the current list.
clear
: Deletes all student contacts.
exit
: Exits the app.
Refer to the Features below for details of each command.
Notes about the command format:
Words in UPPER_CASE
are the parameters to be supplied by the user.
e.g. in add n/NAME
, NAME
is a parameter which can be used as add n/John Doe
.
Items in square brackets are optional.
e.g. n/NAME [t/TAG]
can be used as n/John Doe t/friend
or as n/John Doe
.
Items with …
after them can be used multiple times including zero times.
e.g. [t/TAG]…
can be used as (i.e. 0 times),
t/friend
, t/friend t/family
etc.
Parameters can be in any order.
e.g. if the command specifies n/NAME p/PHONE_NUMBER
, p/PHONE_NUMBER n/NAME
is also acceptable.
Extraneous parameters for commands that do not take in parameters (such as help
, list
, exit
and clear
) will be ignored.
e.g. if the command specifies help 123
, it will be interpreted as help
.
If you are using a PDF version of this document, be careful when copying and pasting commands that span multiple lines as space characters surrounding line-breaks may be omitted when copied over to the application.
All command words are all case-sensitive.
e.g. if the command specifies add
, inputting Add
will be treated as an unknown command.
All command parameters are case-sensitive (with the exception of filter
and sort
commands).
e.g. addEcName command addEcName 1 en/John
adds John
as the emergency contact name of the first student in the list, following the case as provided by user input.
e.g. filter command filter n/hans
will match all students that have hans
or Hans
in their names.
e.g. sort command sort name
will produce the same result as sort Name
.
help
Shows a message explaining how to access the help page.
Format: help
add
Adds a student to the student list.
Format: add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS c/CLASS s/SEX r/REGISTER_NUMBER [t/TAG]…
Tip: A student can have any number of tags (including 0)
Jack s/o Jason
), please write the full phrase instead (e.g. Jack son of Jason
).Examples:
add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01 c/1A s/M r/1
add n/Betsy Crowe t/friend e/betsycrowe@example.com a/Newgate Prison p/1234567 t/criminal c/2C s/F r/2
list
Shows a list of all students in the student list.
Format: list
edit
Edits an existing student in the student list.
Format: edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [c/CLASS] [s/SEX] [r/REGISTER_NUMBER] [en/ECNAME] [ep/ECNUMBER] [t/TAG]…
INDEX
. The index refers to the index number shown in the displayed person list. The index must be a positive integer 1, 2, 3, …t/
without
specifying any tags after it.Examples:
edit 1 p/91234567 e/johndoe@example.com
Edits the phone number and email address of the 1st person to be 91234567
and johndoe@example.com
respectively.edit 2 n/Betsy Crower t/
Edits the name of the 2nd person to be Betsy Crower
and clears all existing tags.filter
Filters persons whose attributes contain any of the given keywords.
Format: filter [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [c/CLASS] [s/SEX] [r/REGISTER_NUMBER] [en/ECNAME] [ep/ECNUMBER] [t/TAG]…
General Guidelines
hans
will match Hans
Hans Bo
will match Bo Hans
e.g. both filter n/Alex Yeoh
and filter n/Yeoh Alex
will return the student, Alex YeohHan
will not match Hans
, example.com
will not match alexyeoh@example.com
.filter p/hello
will display an error message stating that phone numbers can only contain numbers of minimum 3 digits.Filtering Attributes
OR
search).
e.g. Hans Bo
will return Hans Gruber
, Bo Yang
999
will return 99999999
, 27899988
filter en/
(for emergency contact names) or filter ep/
(for emergency contact numbers) will not return any results.filter a/Geylang
returns students with addresses at Geylang
.filter a/Geylang Street
) will match any word within the address (OR
search).
e.g. filter a/Geylang Street
returns all contacts with either Geylang
or Street
or both.Search logic
Single Predicate with Multiple Values: an OR
search is run.
filter n/Alex Bernice
and filter n/Alex n/Bernice
returns students with names Alex
or Bernice
. This will be true for all other attributes.Multiple Predicates: an AND
search is run to return students with all attributes mentioned.
filter s/F p/99999999
returns female students with the phone number 99999999.Multiple Predicates with Multiple Values: both an OR
and anAND
search is run.
Eg. Below are 3 students' details.
filter n/Alex Bernice p/99999999 92443567
matches Alex and Bernice, as both students out of 6 students have at least one matching name and phone number, as seen below.
Reversing the order of phone numbers, filter n/Alex Bernice p/92443567 99999999
still returns Alex and Bernice.
e.g. filter n/Alex Bernice p/99999999 92443567 88888888
, only Alex and Bernice are returned.
e.g. filter n/Alex Bernice Christine p/99999999 92443567 00000000
, only Alex and Bernice are returned, as Christine's phone number does not match.
Examples:
filter n/John
returns john
and John Doe
filter p/99999999
returns Alex Yeoh
filter n/John Alex
returns John Doe
and Alex Yeoh
delete
Deletes the specified person from the student list.
Format: delete INDEX
INDEX
.Examples:
list
followed by delete 2
deletes the 2nd person in the student list.filter n/Bernice
followed by delete 1
deletes the 1st person in the results of the filter
command.addEcName
Adds an emergency contact's name to the specified person in the student list.
Format: addEcName INDEX en/[ECNAME]
Tip: You can delete the emergency contact's name by leaving the ECNAME
field empty.
Note: EcName refers to emergency contact name
ECNAME
to the person at the specified INDEX
INDEX
Jack s/o Jason
), please write the full phrase instead (e.g. Jack son of Jason
).Examples:
addEcName 1 en/John Doe
to add the emergency contact's name "John Doe" to the 1st person in the list.addEcName 2 en/
to delete the emergency contact's name from the 2nd person in the list.addEcName 1 en/Jack Doe
to update a prior emergency contact's name "John Doe" of the 1st person in the list to "Jack Doe"addEcNumber
Adds an emergency contact's number to the specified person in the student list.
Format: addEcNumber INDEX ep/[ECNUMBER]
Tip: You can delete the emergency contact's number by leaving the ECNUMBER
field empty.
Note: EcNumber refers to emergency contact number
ECNUMBER
to the person at the specified INDEX
INDEX
Examples:
addEcNumber 1 ep/91234567
to add the emergency contact's number 91234567 to the 1st person in the list.addEcNumber 2 ep/
to delete the emergency contact's number from the 2nd person in the list.addEcNumber 1 ep/87654321
to update the emergency contact's number 87654321 to the 1st person in the list.addAttendance
Adds the date and reason as to why the specified person in the student list is absent.
Format: addAttendance INDEX ad/DATE ar/[REASON]
Tip: You can delete the attendance by leaving the REASON
field empty.
DATE
and the reason REASON
to the person at the specified INDEX
INDEX
Examples:
addAttendance 1 ad/24-09-2024 ar/Sick
to add the date where the 1st person in the list is absent and the reason.addAttendance 1 ad/24-09-2024 ar/
to delete the attendance from the 1st person in the list.addExam
Adds an exam to every person in the student list.
Format: addExam ex/EXAM_NAME
Tip: If a new student is added after an exam is added, the exam has to be added again for it to be reflected for the new student.
Examples:
addExam ex/Midterm
addExamScore
Adds an exam score for the specified exam for the person at the specified index.
Format: addExamScore INDEX ex/EXAM_NAME sc/EXAM_SCORE
NIL
.NIL
.Examples:
addExamScore 1 ex/Midterm sc/70.0
addExamScore 1 ex/Midterm sc/NIL
deleteExam
Deletes the specified exam from every student in the student list.
Format: deleteExam ex/EXAM_NAME
Examples:
deleteExam ex/Midterm
addSubmission
Adds a submission to every student in the student list.
Format: addSubmission sm/SUBMISSION_NAME
Tip: If a new student is added after a submission is added, the same submission has to be added again for it to be reflected for the new student.
Examples:
addSubmission sm/Assignment 1
addSubmissionStatus
Adds a submission status for the specified submission for the student at the specified index.
Format: addSubmissionStatus INDEX sm/SUBMISSION_NAME ss/SUBMISSION_STATUS
Tip: The submission status can be deleted by entering the submission status as NIL
.
NIL
.Examples:
addSubmissionStatus 1 sm/Assignment 1 ss/Y
addSubmissionStatus 1 sm/Tutorial 2 ss/NIL
deleteSubmission
Deletes the specified submission from every student in the student list.
Format: deleteSubmission sm/SUBMISSION_NAME
Examples:
deleteSubmission sm/Assignment 1
sort
Sorts the list of students based on the students attributes.
Format: sort ATTRIBUTE
Tip: Students attributes include: name, phone, email, address, sex, register number, student class, emergency contact name, emergency contact number.
none
Examples:
sort name
to sort the list based on student's namessort register number
to sort the list based on student's register numberssort none
to unsort the listclear
Clears all entries from the student list.
Format: clear
exit
Exits the program.
Format: exit
StudentManagerPro data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
StudentManagerPro data are saved automatically as a JSON file [JAR file location]/data/addressbook.json
. Advanced users are welcome to update data directly by editing that data file.
Caution:
If your changes to the data file makes its format invalid, StudentManagerPro will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it.
Furthermore, certain edits can cause the StudentManagerPro to behave in unexpected ways (e.g., if a value entered is outside the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
Q: How do I transfer my data to another computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous StudentManagerPro home folder.
preferences.json
file created by the application before running the application again.help
command (or use the Help
menu, or the keyboard shortcut F1
) again, the original Help Window will remain minimized, and no new Help Window will appear. The remedy is to manually restore the minimized Help Window.Action | Format, Examples |
---|---|
Add | add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS c/CLASS s/SEX r/REGISTER_NUMBER [t/TAG]… e.g., add n/James Ho p/22224444 e/jamesho@example.com a/123, Clementi Rd, 1234665 c/1A s/M r/1 t/friend t/colleague |
Clear | clear |
Delete | delete INDEX e.g., delete 3 |
Edit | edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [c/CLASS] [s/SEX] [r/REGISTER_NUMBER] [en/ECNAME] [ep/ECNUMBER] [t/TAG]… e.g., edit 2 n/James Lee e/jameslee@example.com |
Filter | filter [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [c/CLASS] [s/SEX] [r/REGISTER_NUMBER] [en/ECNAME] [ep/ECNUMBER] [t/TAG]… e.g., filter n/James p/90332234 |
List | list |
Help | help |
Add Emergency Contact Name | addEcName INDEX en/[ECNAME] e.g., addEcName 1 en/John Doe |
Add Emergency Contact Number | addEcNumber INDEX ep/[ECNUMBER] e.g., addEcNumber 2 ep/91231234 |
Add Exam | addExam ex/EXAM_NAME e.g., addExam ex/Midterm |
Add Exam Score | addExamScore INDEX ex/EXAM_NAME sc/EXAM_SCORE e.g., addExamScore 1 ex/Midterm sc/70.0 |
Delete Exam | deleteExam ex/EXAM_NAME e.g., deleteExam ex/Midterm |
Add Attendance | addAttendance INDEX ad/DATE ar/[REASON] e.g., addAttendance 1 ad/24-09-2024 ar/Sick |
Add Submission | addSubmission sm/SUBMISSION_NAME e.g., addSubmission sm/Assignment 1 |
Add Submission Status | addSubmissionStatus INDEX sm/SUBMISSION_NAME ss/SUBMISSION_STATUS e.g., addSubmissionStatus 1 sm/Assignment 1 ss/Y |
Delete Submission | deleteSubmission sm/SUBMISSION_NAME e.g., deleteSubmission sm/Assignment 1 |
Sort | sort ATTRIBUTE e.g., sort student class |
Exit | exit |