Photo AI

A program creates usernames for a school - OCR - GCSE Computer Science - Question 4 - 2023 - Paper 1

Question icon

Question 4

A-program-creates-usernames-for-a-school-OCR-GCSE Computer Science-Question 4-2023-Paper 1.png

A program creates usernames for a school. The first design of the program is shown in the flowchart in Fig. 2: Start INPUT firstName INPUT surname name = first ... show full transcript

Worked Solution & Example Answer:A program creates usernames for a school - OCR - GCSE Computer Science - Question 4 - 2023 - Paper 1

Step 1

State, using the process in Fig. 2, the username for Rebecca Ellis.

96%

114 rated

Answer

To determine Rebecca Ellis' username using the process shown in Fig. 2, we need to extract the first three letters from her first name and the first two letters from her surname.

  1. The first name is Rebecca. The first three letters are: Reb.
  2. The surname is Ellis. The first two letters are: El.

Combining these, the final username is: RebEl.

Step 2

What would be the username for a teacher called Fred Biscuit using the updated process?

99%

104 rated

Answer

To find the username for Fred Biscuit using the updated process:

  1. The surname is Biscuit. The last three letters are: uit.
  2. The first name is Fred. The first two letters are: Fr.

Therefore, the username for Fred Biscuit is: uitFr.

Step 3

Write an algorithm for the updated program design shown in question 4(b)(i).

96%

101 rated

Answer

Start

INPUT surname
INPUT firstName

username = last 3 letters of surname + first 2 letters of firstName

OUTPUT username

Stop

Join the GCSE students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;