1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bulgar [2K]
3 years ago
13

) Python command line menu-driven application that allows a user to display, sort and update, as needed a List of U.S states con

taining the state capital, overall state population, and state flower. The Internet provides multiple references with these lists. For example:
Computers and Technology
1 answer:
Dimas [21]3 years ago
4 0

Answer:

Explanation:

The following is a Python program that creates a menu as requestes. The menu allows the user to choose to display list, sort list, update list, and/or exit. A starting list of three states has been added. The menu is on a while loop that keeps asking the user for an option until exit is chosen. A sample output is shown in the attached picture below.

states = {'NJ': ['Trenton', 8.882, 'Common blue violet'], 'Florida':['Tallahassee', 21.48, 'Orange blossom'], 'California': ['Sacramento', 39.51, 'California Poppy']}

while True:

   answer = input('Menu: \n1: display list\n2: Sort list\n3: update list\n4: Exit')

   print(type(answer))

   if answer == '1':

       for x in states:

           print(x, states[x])

   elif answer == '2':

       sortList = sorted(states)

       sorted_states = {}

       for state in sortList:

           sorted_states[state] = states[state]

       states.clear()

       states = sorted_states

       sorted_states = {}

   elif answer == '3':

       state = input('Enter State: ')

       capital = input('Enter Capital: ')

       population = input('Enter population: ')

       flower = input('Enter State Flower: ')

       states[state] = [capital, population, flower]

   else:

       break

You might be interested in
A(n)__________, the heart of an information system, is a collection of all relevant facts organized in a series of integrated fi
max2010maxim [7]

Answer:

database

Explanation:

6 0
3 years ago
Which area of a magazine cover is often important for those shops and stalls that cannot display the entire cover page on a stan
zloy xaker [14]

I think the answer is one fourth.

Because usually only that part is visible in a stand. It usually contains the name of the magazine and a little bit of illustration gives an idea about what it is about.

6 0
3 years ago
To use mail merge future, use tab on the ribbon
EastWind [94]

Answer:

Mailing tab

Explanation:

THIS IS THE COMPLETE QUESTION BELOW

To use mail merge features , use .................... tab on the Ribbon.

Tabs are been sectioned into groups,The groups under mailing tabs are utilized in performing steps needed for mail merge process. Mailing tab comes as fifth tab in the ribbon. This tabs enables the user to merge emails, preview results as well as writing and inserting different fields.

7 0
3 years ago
Complete the following sentences by choosing the best answer from the drop-down menus.
aleksandrvk [35]

Answer:

b. Application software

Explanation:

Applications are type of software that are installed in a specific operating system of a computer that deviates from those system software installed together with the system itself. These third-party applications are necessary for other functions such as entertainment, business, leisure and other needs addressing of which the system software can't provide.

Examples:

Microsoft Office Word, Excel, Powerpoint

i think i did that right:)

7 0
3 years ago
What is the binary conversion of 179.187.223.21?
Lemur [1.5K]

Explanation:

I hope its the correct answer i'm not sure!

6 0
3 years ago
Read 2 more answers
Other questions:
  • You begin your first day of responsibilities by examining the recent IS security breach at GearUp to get ideas for safeguards yo
    11·1 answer
  • What online resource name does a major University end with
    7·2 answers
  • Using computers in place of paper to design components, products, and processes is referred to as ______.
    11·1 answer
  • Write a program that reads a stream of integers from the console and stores them in an array. The array is then analyzed to comp
    10·1 answer
  • Please help me!!!!!!!!
    5·2 answers
  • A user creates a GPO. What do you need to do for that user to manage his or her GPO that he or she created?
    12·1 answer
  • Serena, an analyst at an environmental agency, wants to prepare a report using data from the Car Emissions database.
    11·2 answers
  • PLS ANSWER. MARKING CORRECT ANSWER AS BRAINLIEST
    11·1 answer
  • Select each of the steps involved in creating a table in a presentation.
    12·1 answer
  • Use the round function to modify the program to display at most two digits of precision in the output number.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!