Unit Award Scheme

116848 PROGRAMMING SKILLS (UNIT 2): STRING VALIDATION

In successfully completing this unit, the Learner will have

Evidence needed

shown knowledge of

1the importance of using meaningful variable names throughout their codeStudent completed work

demonstrated the ability to

2use either C#, Python or VB.NET to write a computer program to complete this unitStudent completed work
3define a Boolean variable called isValidStudent completed work
4prompt the user to enter a registration number in the format AA NN AAA and store the inputted value in a string variableStudent completed work
5use selection to check if the entered value is exactly nine characters in lengthStudent completed work
6display 'Invalid registration number. It must be exactly 9 characters in length.' and end the program if the entered value is not exactly nine characters in lengthStudent completed work
7use a suitable method to check if the first two characters and last three characters are all letters of the alphabetStudent completed work
8use a suitable method to check if the fourth and fifth characters are both digitsStudent completed work
9use a suitable method to check if the third and sixth characters are both spacesStudent completed work
10set the value of isValid to True when all of the conditions in outcomes 7, 8 and 9 are metStudent completed work
11display the entered registration number followed by the message 'is a valid registration number.' when isValid is set to TrueStudent completed work
12display the entered registration number followed by the message 'is not a valid registration number.' when isValid is set to False.Student completed work

All outcomes recorded on an AQA Summary Sheet

Approved 25 January 2022Level - Level Two