Develop code

EasyMediumHard
12345678910111213141516171819
Question 13
Easy

A software team is developing the autopilot control algorithm for an autonomous delivery drone. Throughout the source code, several key physical thresholds, such as the maximum safe wind speed and minimum voltage limit, are written as raw numerical values (e.g., 18.5 and 11.2).

Explain why replacing these literal values with descriptive, named constants improves both the readability and the maintainability of the codebase.

[2]

Develop code Questions

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