Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is in python code. I need help with 6-9. Thank you!!! 1. Has a dictionary and names as keys and numbers as values 2.

image text in transcribedimage text in transcribed

This is in python code. I need help with 6-9. Thank you!!!

1. Has a dictionary and names as keys and numbers as values 2. Has a function that asks the user for their first name and stores it to the dictionary (as the key) with a random number as the value. 3. Has a function that selects a new random number for each name in the dictionary. This function can be called at any time and will produce random numbers for every name in the dictionary. 4. The random number must be generated in its own function. The program will call this function and it will return a random number. 5. From inside the random number function, get a random number between 1 and 10. 6. Has a function that prints out the dictionary in the format: a. Name-Random number (ie: Peter - 5) 7. Has a function to only print a single nameumber. Ask the user for the name and then send that name to the print function. This function must receive the name and not ask for it inside the function. 8. The program must be menu driven. 9. 9. One option in the menu must be quit. 10. The program must be commented appropriately. 11. Not required but as a challenge, allow the user to set and reset the range of random numbers

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

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions

Question

Determine the amplitude and period of each function.

Answered: 1 week ago