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
Practise OCR GCSE Computer Science Defensive design with exam-style questions for GCSE Computer Science. 14 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.