Question: Create an array called myList. Write a function called FirstElements for adding 100 random integers between 100 to 1000 to myList. Initialize the first 100
Create an array called myList.
Write a function called FirstElements for adding 100 random integers between 100 to 1000 to myList.
Initialize the first 100 elements of myList by calling the FirstElements function.
Create a menu to display the following options and a number corresponding to each option which is used for selecting the desired option:
1- adding any amount of numbers to myList
2- removing all occurrences of a selected number from myList
3- finding and displaying the maximum, minimum and range (maximum-minimum) in myList
4- finding the number of occurrences of a number in myList
5- doubling (multiplying by 2) all numbers in myList
6- display all members of myList.
7- quit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
