Maya is a software developer creating a library book cataloguing system. Each book has an eleven-character cataloguing code.
Each code consists of three parts as described in the reference tables below.
HIST382910Y and FICT472019N are valid codes.
All codes need to be validated.
Complete the table to show two additional validation tests.
For each test, give one example of erroneous data. The example that you give should fail only that test.
| Part | Description |
|---|---|
| Characters 1 to 4 | Uppercase letters |
| Characters 5 to 10 | Digits between 0 and 9 inclusive |
| Character 11 | 'Y' or 'N' indicating if it is a physical format |
| Validation test | Erroneous data |
|---|---|
| Is the last character 'Y' or 'N'? | HIST382910Z |