subject

This activity is worth 10 total points This lesson's Group Activities are:
We're going to take the Group Activity from last week and tweak it. Instead of storing the random numbers in a list, we're going to store them in a file. Write a program using functions and mainline logic which prompts the user to enter a number, then generates that number of random integers and stores them in a file. It should then display the following data to back to the user:
The list of integers
The lowest number in the list
The highest number in the list
The total sum of all the numbers in the list
The average number in the list
At a minimum, the numbers should range from 0 to 50, but you can use any range you like.
Helpful hint: don't forget about input validation loops and try/catch exceptional handling. Both are very useful when used in conjunction with
functions.
this program uses python

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
You know the right answer?
This activity is worth 10 total points This lesson's Group Activities are:
We're going to tak...
Questions
question
Advanced Placement (AP), 19.11.2020 02:40
question
Spanish, 19.11.2020 02:40
question
Mathematics, 19.11.2020 02:40
question
English, 19.11.2020 02:40
question
Mathematics, 19.11.2020 02:40
question
Mathematics, 19.11.2020 02:40
question
Mathematics, 19.11.2020 02:40
question
Mathematics, 19.11.2020 02:40