Skip to content

Instantly share code, notes, and snippets.

@ClayMav
Created August 27, 2019 20:46
Show Gist options
  • Save ClayMav/bb8e67faa4004ee01b16d2c9132fe52a to your computer and use it in GitHub Desktop.
Save ClayMav/bb8e67faa4004ee01b16d2c9132fe52a to your computer and use it in GitHub Desktop.
Multirotor Robot - Directory Assignment Description

Multirotor Directory Assignment

Description

For this assignment, you will be creating a Python 3.X program which will be accessible via the command line (CLI). This application will be capable of storing and accessing a directory of things, the things of which you may choose for yourself.

Objectives

After completing this assignment, you should have a solid understanding of:

  • Dictionary types
  • Class/Object paradigms
  • Built in Python functions
  • Making a program in Python?

Requirements

  • A class to interact with the Directory
  • A dictionary to store the data in the Directory
  • Ability to add an entry to the directory
  • Ability to delete an entry from the directory
  • Ability to find an entry and print its contents
  • Ability to list all entry names (not values), sorted
  • Should continue to ask for commands until the user types "exit"

Sample input

For this sample input, a contact directory was used, please feel free to use whatever kind of directory and achieve the same functionality.

Please enter a command: add bees 12
Added bees to your contacts.
Please enter a command: list
List of Contacts
bees
Please enter a command: add art 45
Added art to your contacts.
Please enter a command: find bees
bees: 12
Please enter a command: list
List of Contacts
art
bees
Please enter a command: delete bees
Deleted bees from your contacts.
Please enter a command: list
List of Contacts
art
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment