Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 Call a function that will display a heading and menu choices for the user. The information to display is found in the sample

Part 1
Call a function that will display a heading and menu choices for the user. The information to display is found in the sample screenshot.
Part 2
Call a function that will prepopulate a dictionary that will hold country key and name. A minimum of three countries must be in the original dictionary.
Part 3
Use the menu commands to perform the following functionality:
Call a function to view a country. Display all the keys in the dictionary using a for. in loop. The user will then enter a key and display the corresponding country. If the user enters an invalid key display a message. Use the dictionary as a parameter passed into the function.
Call a function to add a country to the dictionary. If the user enters a key value that already exists display a message. Use the dictionary as a parameter passed into the function.
Call a function to delete a title from the dictionary. If the user enters an invalid key value display a message. Use the dictionary as a parameter passed into the function.
Exit the program.
If the user entered an invalid command display a message.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

Students also viewed these Databases questions

Question

Which is the better security measure HTTPs or SSL

Answered: 1 week ago

Question

Physicians have no say in what prices to charge their patients.

Answered: 1 week ago