subject
Computers and Technology, 16.11.2020 17:50 9444

Write a Python program that uses function(s) for writing to and reading from a file: a. Random Number File Writer Function
Write a function that writes a series of random numbers to a file called "random. txt". Each random number should be in the range of 1 through 500. The function should take an argument that tells it how many random numbers to write to the file.
b. Random Number File Reader Function
Write another function that reads the random numbers from the file "random. txt", displays the numbers, then displays the following data:
The total of the numbers
The number of random numbers read from the file
c. Main Function
Write a main function that asks the user about how many random number the user wants to generate. It them calls the function in a. with the number the user wants as an argument and generates random numbers to write to the file. Next, it calls the function in b.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
question
Computers and Technology, 24.06.2019 12:10
What is it called during the editing process when the processor ensures that a character holding a coffee mug from one angle is holding the same mug in the same way when the shot switches to another camera at another angle? cinematography continuity technology prop use
Answers: 1
You know the right answer?
Write a Python program that uses function(s) for writing to and reading from a file: a. Random Numb...
Questions
question
Mathematics, 19.04.2020 20:29
question
Mathematics, 19.04.2020 20:30
question
Mathematics, 19.04.2020 20:31
question
History, 19.04.2020 20:38
question
Mathematics, 19.04.2020 20:38
Questions on the website: 13722362