K
Kizspy.me
Zoom
First line: An integer N
the number of commands to execute.
Next N lines: Each line is a command related to tasks. The command types are shown as
following table:
Command Type
Output
1. Adds a new WorkTask
By default, all new WorkTask status is Not Done.
Work <id> <name> <project>
2. Adds a new PersonalTask.
Add new work: <id> <name>
By default, all new PersonalTask status is Not Done.
Personal <id> <name> <location>
Add new personal: <id> <name>
3. Set the status of the task (which can be either a WorkTask or a PersonalTask) with the ID<id> to Done.
Note that, id of all WorkTask and Personal Task are unique.
Done <id>
4. Prints all tasks in the list.
<id> is done!
Using method getInfo() to print out information of all WorkTask and PersonalTask.
PrintAll
5. Prints only tasks of the specified type.
--PrintAll--
Work: [1] ReportX (ProjectA) - Done
Personal: [2] Grocery (Home) - Not Done
Using method getInfo() to print out information based on <type>.
Note that, the value of <type> can be Work or Personal.
PrintByType <type>
Sample 1: <type> is Work
--PrintByType: Work--
Work: [1] Design (ProjectX) - Not Done
Work: [2] Code (ProjectX) - Done
Sample 2: <type> is Personal
--PrintByType: Personal--
Personal: [1] Read (Library) Done
Personal: [3] Jog (Park) - Done
+ 100%
Close