Exercise 3: Write a Program that reads integers from a file called "input.dat" (Figure 1) that contains unknown number of data, produces (create) new file that contains the data shown in Figure 2. The...

Use files in python program please don’t use functions to solve it.Exercise 3:<br>Write a Program that reads integers from a file called

Extracted text: Exercise 3: Write a Program that reads integers from a file called "input.dat" (Figure 1) that contains unknown number of data, produces (create) new file that contains the data shown in Figure 2. The data must be displayed on screen accordingly. 71 -45 92 84 0 10 ====== ====== ====================================== 12 0 32 0 -12 -11 The input data has 9 19 5 3 69 -10 24 positive numbers 5 negative numbers 93 21 25 53 20 12 89 55 -13 28 29 17 and 3 zeros. Figure 1. Sample “input.dat" The average of positive numbers is = 37.64 ================================================== Figure 2. Sample screen output

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here