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: For example, using the process in Fig. 2, Tom Ward's ... 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 create the username for Rebecca Ellis using the process in Fig. 2:

  • First, take the first three letters of the first name 'Rebecca', which gives 'Reb'.
  • Next, take the first two letters of the surname 'Ellis', which provides 'El'.
  • Combine these two parts to create the username: 'RebEl'. Thus, the username for Rebecca Ellis is RebEl.

Step 2

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

99%

104 rated

Answer

For the teacher 'Fred Biscuit', we use the updated username creation process:

  • Take the last three letters of the surname 'Biscuit', which gives 'uit'.
  • Then, take the first two letters of the first name 'Fred', which gives 'Fr'.
  • Combine these parts to arrive at the username: 'uitFr'. Hence, 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

Algorithm for creating the username for a teacher:

  1. Start
  2. Input teacher's first name (Fred)
  3. Input teacher's surname (Biscuit)
  4. Set username = last three letters of surname + first two letters of first name
    • username = 'uit' + 'Fr'
  5. Output username
  6. 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

Other GCSE Computer Science topics to explore

;