wisemonkeys logo
FeedNotificationProfile
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Note Taker App

profile
Aarti Rathod
Jul 16, 2025
0 Likes
0 Discussions
0 Reads



(defvar *notes* '()

"Global list to store text notes.")


(defun add-note ()

"Add a new text note."

(format t "Enter your note: ")

(let ((note (read-line)))

(push note *notes*)

(format t "๐Ÿ“ Note added: ~A~%" note)))


(defun list-notes ()

"Display all saved notes."

(if *notes*

(progn

(format t "~%๐Ÿ“‹ Your Notes:~%")

(dolist (note (reverse *notes*))

(format t "โ€ข ~A~%" note)))

(format t "๐Ÿ“ญ No notes found.~%")))


(defun clear-notes ()

"Clear all saved notes."

(setf *notes* '())

(format t "๐Ÿงน All notes cleared.~%"))


(defun show-menu ()

"Displays the options menu."

(format t "~%========= NOTE TAKER =========~%")

(format t "1. Add Note~%")

(format t "2. View Notes~%")

(format t "3. Clear Notes~%")

(format t "4. Exit~%")

(format t "Choose an option (1-4): "))


(defun note-taker ()

"Main loop for the note taker app."

(loop

(show-menu)

(let ((choice (read)))

(case choice

(1 (add-note))

(2 (list-notes))

(3 (clear-notes))

(4 (progn (format t "๐Ÿ‘‹ Exiting Note Taker. Goodbye!~%") (return)))

(t (format t "โŒ Invalid option. Try again.~%"))))))



Comments ()


Sign in

Read Next

The Right way of cooking

Blog banner

Fitness

Blog banner

ART AND CULTURE OF VRINDAVAN

Blog banner

Super Garlicky Tomato Soup with Smashed White Beans

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Fudgy Tahini Date Chocolate Bars

Blog banner

Guidelines for a Low sodium Diet.

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner