wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

To-Do List In LISP

profile
Nareen Ansari
Jul 16, 2025
1 Like
0 Discussions
1 Reads

This program allows a user to manage a simple to-do list. The program does:

  1. Add tasks
  2. View tasks


Program:


(defvar *todo-list* '())


(defun add-task ()

(format t "Enter new task: ")

(let ((task (read-line)))

(push task *todo-list*)

(format t "Task added successfully.~%")))


(defun view-tasks ()

(if (null *todo-list*)

(format t "No tasks in the list.~%")

(progn

(format t "~%--- To-Do List ---~%")

(let ((i 1))

(dolist (task (reverse *todo-list*))

(format t "~A. ~A~%" i task)

(incf i))))))


(defun todo-menu ()

(loop

(format t "~%--- To-Do Menu ---~%")

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

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

(format t "3. Exit~%")

(format t "Choose an option: ")

(let ((choice (read)))

(case choice

(1 (add-task))

(2 (view-tasks))

(3 (progn (format t "Exiting...~%") (return)))

(t (format t "Invalid option.~%"))))))


;; Start the to-do list manager

(todo-menu)



Output:


Comments ()


Sign in

Read Next

Excel records

Blog banner

MENDELEY

Blog banner

Types of Threads

Blog banner

Emailing the merger document

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

Zoho

Blog banner

computer security

Blog banner

Smartphone Security: Vulnerabilities and Attacks

Blog banner

Service Operations in ITSM

Blog banner

geographic information system (GIS)

Blog banner

Understanding E-mail Servers

Blog banner

Evolution of Operating Sytems

Blog banner

Cybersecurity Standards for Automotive

Blog banner

Outlook mail

Blog banner

Interrupts

Blog banner

Danger assessment in GIS

Blog banner

Mail merge

Blog banner

File management

Blog banner

Concurrency management in operating systems

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

BrainGate Technology

Blog banner

Patola Outfits for the Modern Wardrobe: Reviving Indian Handloom in Style

Blog banner

HOW CAN SOCIAL MEDIA MAKE YOU HAPPIER?

Blog banner

Blog name

Blog banner

Jira Software

Blog banner

Importance Of Blockchain

Blog banner

Concurrency and memory

Blog banner

Social Media.

Blog banner

Deadlock and Starvation in an Operating System

Blog banner

CyberSecurity Color Wheel

Blog banner

This too shall pass

Blog banner

How To Invest In Indian Stock Market @ BSE & NSE ~ Tutorial 3

Blog banner

Top Career Paths After a B.Com Degree in Mumbai: What’s Next for You?

Blog banner

E-commerce

Blog banner

Cyber Security Standards

Blog banner

Technical SEO : Total Guide

Blog banner

Best password managers: Reviews of the top products

Blog banner

CONCURRENCY

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

Memory Management

Blog banner