Skip to content

sambasten/NoteApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

NoteApp1

This Application contains a class called NotesApplication which does the following :

  • Creates a constructor that also does the following:
    • Takes in a parameter author as the author of the note and saves this as an instance variable.
    • Create a notes list/array to store all the notes as an instance property.
  • The following functionality were also included in the NotesApplication class
    • create(note_content) - This function takes the note content as the parameter and adds it to the notes list of the object.

    • listNotes() - This function lists out each of the notes in the notes list in the following format. The note_id parameter below represents the respective index of each of the items in the list, the NOTE_CONTENT represent the note content and the author represents the note author.

      Note ID: [note_id]
      [NOTE_CONTENT]
      By Author [author]
    • get(note_id) - This function takes a note_id which refers to the index of the note in the notes list and returns the content of that note as a string.

    • search(search_text) - This function take a search string, search_text and returns all the notes with that text within it in the following format:

      Showing results for search ‘[<search_text>]’

      Note ID: [note_id]
      [NOTE_CONTENT]
      By Author [author]
    • delete(note_id) - This function deletes the note at the index note_id of the notes list.

    • edit(note_id, new_content) - This function replaces the content in the note at note_id with new_content.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published