subject

The Dictionary is a very powerful data structure. The objective of this programming assignment is to demonstrate proficiency with dictionaries. You are to write a program that manages a dictionary of Frequently Asked Questions (FAQ's). Questions serve as the keys and answers serve as the values. Your program will use a menu driven interface to display the items in the dictionary, add FAQ's and optionally to delete FAQ's. Create a program with a menu that allows the user to do the following: a. If the question is already in the dictionary, do not overwrite it. Let the user know that the question is already in the FAQ's. Then ask the user to rephrase the question.
b. Otherwise, prompt the user for the answer
c. Add the question/answer pair to the dictionary using the question as the key and the answer as the value.
d. Requirements for Menu Selection 3 (optional):

Note that implementing menu selection 3 is for 10 points extra credit.
Ask the user for the question to be deleted.
Check to see if the question is in the dictionary.
If it isn't, let the user know that the question could not be found and that no changes were made.
Otherwise delete the item from the dictionary and let the user know that the item was deleted.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:30
How many pairs of chromosomes do human body cells contain?
Answers: 2
question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
You know the right answer?
The Dictionary is a very powerful data structure. The objective of this programming assignment is to...
Questions
question
Mathematics, 23.05.2021 18:10
question
Mathematics, 23.05.2021 18:20
question
Social Studies, 23.05.2021 18:20
question
Computers and Technology, 23.05.2021 18:20
question
Mathematics, 23.05.2021 18:20
Questions on the website: 13722362