Section 1: Software design and development, and Computer systems
(a) Identify three processes that will be carried out by the program.
| Input(s) | Username, password, gift card number |
|---|---|
| Process(es) | |
| Output(s) | Display new balance |
3 marks
(b) Using a programming language of your choice, write the input validation code to confirm that the password entered has five characters.
4 marks
(c) Test data will be used to ensure this input validation works correctly.
Complete the test table below.
| Type of test | Input | Expected result |
|---|---|---|
| As4G5 | Program will continue | |
| Exceptional | Error message, ask to re‑enter |
2 marks
