Your task is to complete the five individual functions for adding and deleting terms, looking up terms, listing them, and printing out both the terms and definitions. These functions are all short, just a couple of lines, and use basic dictionary methods and techniques. Here is some sample output. Glossary System 1) Add a term 2) List terms 3) Get a definition 4) Delete a term 5) Print out dictionary Print the menu 6) Quit Enter your choice: 2 User chooses 2 - list the terms argument dictionary hashmap list set 5 terms. slossary System 1) Add a term Menu again 6) Quit Enter your choice: 1 what term do you want to add? String What is the definition for 'string'? A basic type in Python that stores text. 3lossary System 1) Add a term 2) List terms 3) Get a definition User chooses 1- add a term User enters term and definition Menu again 6) Quit Enter your choice: 3 that term do you want to lookup? STRING User chooses 3 - look up a term Then enters term to look up definition of "string" A basic type in Python that stores text.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please answer the below question by using the Python IDLE. 

1) Delete a term
5) Print out dictionary
5) Quit
Enter your choice: 4
That term do you want to delete? set
Deleted: data structure that stores unordered unique elements
Slossary System
1) Add a term
2) List terms
3) Get a definition
1) Delete a term
5) Print out dictionary
5) Quit
Enter your choice: 4
hat term do you want to delete? seterm, but it is not there
Deleted: No such term
slossary System
1) Add a term
2) List terms
3) Get a definition
1) Delete a term
5) Print out dictionary
5) Quit
Enter your choice: 5
rechnical terms in glossary
Choose 4 & enter a term
Choose 4 again & enter a
Print out the entire glossary
argument
dictionary
hashmap
list
string
data that is passed to a function
data structure that stores key/value pair
see 'dictionary'
data structure that stores values ordered by integer indexes
A basic type in Python that stores text.
slossary System
1) Add a term
2) List terms
3) Get a definition
1) Delete a term
5) Print out dictionary
5) Quit
Enter your choice: 6
Quit
Notice that for 2 and 5, the terms are listed in alphabetical order. Also, lookup and delete should not be case sensitive.
Transcribed Image Text:1) Delete a term 5) Print out dictionary 5) Quit Enter your choice: 4 That term do you want to delete? set Deleted: data structure that stores unordered unique elements Slossary System 1) Add a term 2) List terms 3) Get a definition 1) Delete a term 5) Print out dictionary 5) Quit Enter your choice: 4 hat term do you want to delete? seterm, but it is not there Deleted: No such term slossary System 1) Add a term 2) List terms 3) Get a definition 1) Delete a term 5) Print out dictionary 5) Quit Enter your choice: 5 rechnical terms in glossary Choose 4 & enter a term Choose 4 again & enter a Print out the entire glossary argument dictionary hashmap list string data that is passed to a function data structure that stores key/value pair see 'dictionary' data structure that stores values ordered by integer indexes A basic type in Python that stores text. slossary System 1) Add a term 2) List terms 3) Get a definition 1) Delete a term 5) Print out dictionary 5) Quit Enter your choice: 6 Quit Notice that for 2 and 5, the terms are listed in alphabetical order. Also, lookup and delete should not be case sensitive.
Your task is to complete the five individual functions for adding and deleting terms, looking up terms, listing
them, and printing out both the terms and definitions. These functions are all short, just a couple of lines, and
use basic dictionary methods and techniques.
Here is some sample output.
Glossary System
1) Add a term
Print the menu
2) List terms
3) Get a definition
4) Delete a term
5) Print out dictionary
6) Quit
Enter your choice: 2
argument
dictionary
hashmap
list
User chooses 2 - list the terms
set
5 terms.
Slossary System
1) Add a term
Menu again
User chooses 1- add a term
6) Quit
Enter your choice: 1
what term do you want to add? String
What is the definition for 'string'? A basic type in Python that stores text.
slossary System
1) Add a term
2) List terms
3) Get a definition
User enters term and
initi
Menu again
6) Quit
Enter your choice: 3
what term do you want to lookup? STRING
User chooses 3 - look up a term
Then enters term to look up
definition of "string" - A basic type in Python that stores text.
Transcribed Image Text:Your task is to complete the five individual functions for adding and deleting terms, looking up terms, listing them, and printing out both the terms and definitions. These functions are all short, just a couple of lines, and use basic dictionary methods and techniques. Here is some sample output. Glossary System 1) Add a term Print the menu 2) List terms 3) Get a definition 4) Delete a term 5) Print out dictionary 6) Quit Enter your choice: 2 argument dictionary hashmap list User chooses 2 - list the terms set 5 terms. Slossary System 1) Add a term Menu again User chooses 1- add a term 6) Quit Enter your choice: 1 what term do you want to add? String What is the definition for 'string'? A basic type in Python that stores text. slossary System 1) Add a term 2) List terms 3) Get a definition User enters term and initi Menu again 6) Quit Enter your choice: 3 what term do you want to lookup? STRING User chooses 3 - look up a term Then enters term to look up definition of "string" - A basic type in Python that stores text.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Dictionary
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education