Skip to content

Course home

Sign up

Develop code

EasyMediumHard
123456789101112131415
Question 10

A program is required to manage remote uplink authorization for a fleet of deep-sea research drones. The registered identifiers of the drones and their encrypted security keys are stored in a two-dimensional array named drones.

Write a program in Python to meet these requirements.

Inputs

  • Prompt for and accept a drone identifier and an encryption key.
  • Neither input should be left blank (you must validate this using appropriate loops).

Process

  • Implement a search by iterating through the 2D array to find the drone identifier and its corresponding encryption key.
  • Ensure the search works correctly for a drones array of any length.

Output

  • Display a successful uplink initialization message when both the correct drone identifier and encryption key are found.
  • Display a security alert message when the drone identifier is found but the encryption key does not match.
  • Display a registration error message when the drone identifier cannot be found in the system.

Use comments, white space, and logical layouts to make the program easy to read and understand.

[15]
Markscheme

Develop code Questions

  1. GCSE
  2. /Computer Science
  3. /Develop code

51 exam-style questions on Edexcel GCSE Computer Science Develop code, covering Decomposition and abstraction to solve problems, Read, write, analyse and refine programs, Converting algorithms into programs, Techniques for readable, maintainable code, Identifying and correcting program errors, and Evaluating program fitness and efficiency. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank