Question: Create a program in Python that reads all of the numbers stored in a file (provided in Blackboard as numdata.txt) and calculates the total (sum)

Create a program in Python that reads all of the numbers stored in a file (provided in Blackboard as numdata.txt) and calculates the total (sum) then displays the value as total points to screen. Next, have the program calculate the average score then display the value as percent score to screen. Next, make sure the program handles IOError and ValueError exceptions. Numdata.txt has these numbers in line of their own in text file. 78 93 85 100 81 76 94 77

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!