An automated drone dispatch system requires the payload weight of a delivery to be logged and validated. The weight is measured in kilograms (kg) and must be between 1.5 and 6.5 inclusive to ensure safe takeoff.
Write an algorithm to:
You must use either:
14 exam-style questions on OCR GCSE Computer Science Defensive design. Each one has a worked solution and a mark scheme showing where the marks go.