Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started