K
2. Adds a new Personal Task.
Kizspy.me
Zoom
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>
Constraint:
<id> is an integer that greater than 0.
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
<name>, <project>, <location> is a single word.
The value of <type> can be work or Personal.
The output: all result must be print out into the output.txt file.
- Test Case 1: Add one WorkTask
Sample Input 1
+ 100%
Close