2025 Home

Question 10

Section 1: Software design and development, and Computer systems

A program is being written that will allow gamers to add money to their account using gift cards.

page8_img0

The program asks the user to enter their username, their five‑character password and the gift card number. The updated balance in the user’s account is then displayed.

(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 testInputExpected result
As4G5Program will continue
ExceptionalError message, ask to re‑enter

2 marks