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, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 24.06.2019 09:10
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
question
Computers and Technology, 24.06.2019 23:30
True or false when a host gets an ip address from a dhcp server it is said to be configured manually
Answers: 1
You know the right answer?
The Dictionary is a very powerful data structure. The objective of this programming assignment is to...
Questions
question
Mathematics, 06.09.2019 00:10
question
Mathematics, 06.09.2019 00:10
question
History, 06.09.2019 00:10
question
Mathematics, 06.09.2019 00:10
Questions on the website: 13722362