Answered step by step
Verified Expert Solution
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.
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 numbersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started