Question: Help with this program please python ValidateStudentData.py 1 # PROGRAM: ValidateStudentData.py 2 # AUTHOR: DESIGNER: Dr. Kaminski 3 # DESCRIPTION: Gets student data from the
Help with this program please python

ValidateStudentData.py 1 # PROGRAM: ValidateStudentData.py 2 # AUTHOR: DESIGNER: Dr. Kaminski 3 # DESCRIPTION: Gets student data from the user for multiple students. 4 # Validate the Data fields: 5 # name - get rid of preceding and trailing whitespaces (if any) 6 # gpa must be between 0.0 and 4.0 7 # age - must be between 15 and 80 8 # zip - must have 5 digits and must start with 49 9 # (i.e., 49XXX where X can be any digit) 10 # year - must be one of 'FR', 'SO', 'JR', 'SR' 11 # For each student, print out their data using the f_str below for 12 # data fields in the above order. 13 # NOTE: Program runs right now, as is. When you add some code, re-run it and 14 keep program in a valid state. 15 # # 16 17 f_str = "{:5}, gpa: {:.2f}, age: {:2d}, zip: {:5d}, year: {:s}" 18 19 20 done = "no" while done == # "no": input with data validation 21 22 print student's data 23 24 25 26 27 28 # done = input("Done entering scores? (yes or no): ") 29 30 31 print(" THE END")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
