Menu
Coddy logo textTech

Project Setup

Part of the Logic & Flow section of Coddy's Lua journey — lesson 41 of 54.

challenge icon

Challenge

Easy

Over the next several lessons, you'll create a program that can store, display, search, and manage contact information.

Create the foundation for your contact list application by setting up the main data structure and displaying the user interface.

Initialize an empty list-style table called contacts that will store all contact information. Then display a welcome message and a menu showing the available commands.

Requirements:

  • Create an empty table named contacts
  • Print the message: Welcome to Contact List Manager!
  • Print a blank line
  • Print the menu header: Available Commands:
  • Print each menu option on a separate line:
    • add - Add a new contact
    • list - Display all contacts
    • search - Search for a contact
    • delete - Delete a contact
    • quit - Exit the program

Expected Output:

Welcome to Contact List Manager!

Available Commands:
add - Add a new contact
list - Display all contacts
search - Search for a contact
delete - Delete a contact
quit - Exit the program

Try it yourself

All lessons in Logic & Flow