Question: You are to create a menu driven program that tracks two lists; a list of names and a list of numbers. We are assuming that
You are to create a menu driven program that tracks two lists; a list of names and a list of numbers. We are assuming that the names and numbers are in pairs, so the first name in the name list matches with the first number in the numbers list. The program must have the following characteristicsfunctions:
Has a function that asks the user for their first name and stores it to a list and a random number to a second list.
Has a function that selects a new random number for each name that is currently in the names list and replaces the corresponding number in the numbers list.
The random number must be generated in its own function.
From inside the random number function, get a random number between and
Has a function that prints out both lists in the format:
a Name Random number ie: Peter
Has a function to only print a single namenumber when given a name from the user.. This function must be passed the name and not ask for it inside the function.
The program must be menu driven
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
