Mini quiz Dec 11
- Problem 1: (89 points): Write a function process that has one
parameter - list of integers. The function finds and returns the
following:
average of all items in the list, the number of items below average, the
number of items above average and the number of items equal to average.
Write a program that reads the size of the list and randomly generates the
list of integers between -10 and 10. The program then uses function
process to find the average of all elements in the list, the number of
items below average, above average and equal average
- Problem 2: (11 points)
Write a program that reads the size of the list
and creates the list of strings from user input. The program then
creates a new list of lengths and finds the
average string length. You can write everything in main. If time permits
you can break into functions: make_list, length_list (returns list of
lenghts), average, main