Input/output

EasyMediumHard
123456789101112131415
Question 5
Easy

A marine conservation group uses a tracking database to register tags deployed on marine wildlife.

Wildlife Tag Identifier Format

  • The identifier begins with a two-letter species group abbreviation (e.g., SH for Shark, WH for Whale).
  • The next field is a three-digit sensor model number (e.g., 402, 109).
  • The next field is a single uppercase letter representing the oceanic zone (e.g., P for Pacific, A for Atlantic, I for Indian).
  • The next field is a five-digit deployment date code in the format DDMMY (e.g., 12043 for 12th April 2023).
  • The last field is a three-letter research team code.

Each field is separated by a hyphen.

Valid tracking tag identifiers:

  • SH-402-P-12043-MBR
  • WH-109-A-05112-WHO
  • TU-301-I-22081-UOS

Give one validation test that could be used to check the research team code in the tracking tag identifier.

[1]

Input/output Questions

  1. GCSE
  2. /Computer Science
  3. /Input/output