When a new member is registered for a youth sports club, the details are entered into a program to validate the values. The following criteria must be checked:
memberID must not be emptytier must be either "standard" or "elite"age must be between 12 and 18 (inclusive)If any invalid data is found, "REJECTED" is displayed. If all data is valid, "ACCEPTED" is displayed.
Complete the program to validate the inputs.
You must use either:
memberID = input("Enter member ID: ")
tier = input("Enter standard or elite: ")
age = input("Enter age: ")
registrationComplete = False
14 exam-style questions on OCR GCSE Computer Science Defensive design. Each one has a worked solution and a mark scheme showing where the marks go.