Question: Part 2 - Must be named Prog 6 part 2 . py Use input ( ) to ask for a file name. Do not let
Part Must be named
Progpartpy
Use input to ask for a file name. Do not let the program crash if you enter the name of a file
that does not exist. Detecting the existence of a file was discussed in class. If the file does not
exist, gracefully display an error message stating the file doesn't exist and quit the program.
It the file does exist, ask for a low limit and a high limit These read all the values in the file. You
will only need to read the file once, or more to the point, only read the file once. After the
program has finished reading all the data, display the following information to the screen. The
MUST be in the order specified, with any preceding text on the line ending with a colon.
The total number of values that fell within the range
The minimum value. This will be equal to or greater, than the input low limit
The maximum value. This will be equal to or less than the input high limit
If any values were equal to the high limit NO output if none of the values were equal to
the high limit The text "Found value of high limit must be in the text, if displayed. Do not
use a colon in this text.
If any values were equal to the low limit NO output if none of the values were equal to
the low limit The text "Found value of low limit must be in the text, if displayed. Do not
use a colon in this text.
The average of the scores within the range display with places after the decimal
point
If no data exists in the file, write out a simple message indicating that there was no data in the
file and nothing else.
Requirements
DO NOT use lists andor dictionaries in this assignment
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
