Question
Task 2: Python - Same as Task 1, but use Python. (Function Organized Code is Ok) Create a program that will generate 1000 random integers
Task 2:
Python - Same as Task 1, but use Python.
(Function Organized Code is Ok)
Create a program that will generate 1000 random integers between 1 - 1000 and write into a .txt file.
Implement a file buffer. (Random numbers should be generated, stored in a structure, then written into the .txt file.)
*** Hint use a python list
Task3:
Python - use Python.
Read from a file
(Function Organized Code is Ok)
Read the [1000 random integers] for .txt File into a file buffer multiple each output by 10 and output to the console.
Implement a file buffer.
please use the output file name
" output.txt"
comment everyline make it work and show the txt file for both
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started