Question: In python write a Program that reads integers from a file called input.dat (Figure 1) that contains unknown number of data, and produces (create) new

In python write a Program that reads integers from a file called input.dat (Figure 1) that contains unknown number of data, and produces (create) new file that contains the data shown in Figure 2. The data must be displayed on screen accordingly.

8 13 67 43 47

9 19 5 3 69

93 21 25 53 20

89 55 28 29 17

input.dat

In python write a Program that reads integers from a file called

Write a Program that reads integers from a file called "input.dat" (Figure 1) that contains unknown number of data, and produces (create) new file that contains the data shown in Figure 2. The data must be displayed on screen accordingly 8 13 67 43 47 9 19 5 3 69 93 21 25 53 20 89 55 28 29 17 The data file contains 20 integer numbers The number of odd numbers = 17 The number of even numbers3 The average number35.650 The maximum number 93 The minimum number = 3 Figure 1. Sample "input.dat Figure 2. Sample screen output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!