Unit Award Scheme
116848 PROGRAMMING SKILLS (UNIT 2): STRING VALIDATION
In successfully completing this unit, the Learner will have | Evidence needed | |
---|---|---|
shown knowledge of | ||
1 | the importance of using meaningful variable names throughout their code | Student completed work |
demonstrated the ability to | ||
2 | use either C#, Python or VB.NET to write a computer program to complete this unit | Student completed work |
3 | define a Boolean variable called isValid | Student completed work |
4 | prompt the user to enter a registration number in the format AA NN AAA and store the inputted value in a string variable | Student completed work |
5 | use selection to check if the entered value is exactly nine characters in length | Student completed work |
6 | display '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 length | Student completed work |
7 | use a suitable method to check if the first two characters and last three characters are all letters of the alphabet | Student completed work |
8 | use a suitable method to check if the fourth and fifth characters are both digits | Student completed work |
9 | use a suitable method to check if the third and sixth characters are both spaces | Student completed work |
10 | set the value of isValid to True when all of the conditions in outcomes 7, 8 and 9 are met | Student completed work |
11 | display the entered registration number followed by the message 'is a valid registration number.' when isValid is set to True | Student completed work |
12 | display 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