Question: Please help me solve this question using python , Numeric Processing A text file contains a collection of numeric values (possibly plus some non-numeric values).

Please help me solve this question

using python , Numeric Processing A text file contains a collection of numeric values (possibly plus some non-numeric values). Write a program that requests a file name from the use. Your program should complain if the file is not accessible and should request an alternative file. Your program should then process the data in the file: It should compute the product of all the integers in the file and the sum of all the floating-point values in the file. It should keep track of how many non-numeric data items are in the file. Your program should then report: 1. The product of all the integers 2. The sum of all the floats 3. How many integers were discovered 4. How many floats were discovered 5. How many non-numeric items were discovered You should use the provided Values.txt file for your final run.

Value.txt 12.34 49 549.50 144 190.96 138 1061.00 112 414.48 42 488.33 23 825.79 16 693.74 68 662.87 90 trash 773.12 92 1182.43 - 20 trash -830.81 168 1015.36 67 trash 340.34 -88 11.99 151 1237.91 - 177 -963.10 186 trash 846.10 -185 -1112.44 -145 -774.34 157 119.16 69 1031.62 172 trash 315.46 200 225.19 169 757.97 151 164.97 41 1019.45 15 trash 196.81 63 866.56 109 1135.50 160 222.00 15 trash 351.41 32 573.48 45 681.64 157 trash 160.66 72 1024.88 33 1050.55 129 1035.28 -86 trash -1013.68 116 246.20 180 395.86 133 167.23 92 1024.73 -95 -1095.16 144 trash 1075.64 16 438.66 - 150 trash -31.81 -200 -316.59 -170 -745.84 91 962.99 120 198.13

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!