Due: February 25, Thursday, 11:00 am.
Language: Java
Submission:
Add two new commands to your CLI: append and delete.
Print error messages on the screen for these commands. See the example given below for Task 1 and Task 2.
buse@buse src $ java NoteCat.NoteCat
> help
noteCat 0.0.1 - simple console notetaking program
USAGE: noteCat <COMMAND> [DATA]
OPTIONS:
new [note] Create new note
append [note] Append to an existing note
show [note] Display existing note
delete [note] Delete existing note
help Prints this help menu
exit Terminates NoteCat
> new note
Enter your note
your task is to app new commands: append and delete#END
> new note2
Enter your note
Also refactor your code according to what you have seen in the class today.#END
> show note
your task is to app new commands: append and delete
> show note2
Also refactor your code according to what you have seen in the class today.
> append note2
Enter your note
Remember to write short, well-defined methods, pay attention to naming.#END
> show note2
Also refactor your code according to what you have seen in the class today.
Remember to write short, well-defined methods, pay attention to naming.
> append note3
Enter your note
File to delete does not exist
> delete note
> delete note
File to delete does not exist
> exit
Refactor your code. In addition to appropriate naming, make your functions clean, short, and well-defined.
Penalties: