Question: dof main ( ) : filename = input ( Enter name of file: ) # add data validation on file name valid _
dof main:
filename input Enter name of file:
# add data validation on file name
validfile Falso
while not validfile:
:
file open filename
valid file Thue
oxcopt FileNotFoundExzox:
pxint filename "cannot be located"
filoname input Entor name of file:
print Data filo", filename, "oponed successfully"
print
IF TODO: add vaziablen to sum the worthe and count numbex to be reoxdexed H minimum atook level noquired cutoff int inputEntex minimun stock level:
print product Eile, readilne xstzip n :
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
