{
  "tool": "matric-nqf4.it_binary",
  "name": "Binary and decimal conversion (CDU-GEN-NSC-400)",
  "answers": "The binary representation of a whole number (0–65535) and the round-trip back to decimal.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); IT row of §4 — a binary/decimal conversion",
  "endpoint": "/faculty/matric-nqf4/it_binary",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "value"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "value": {
        "type": "number",
        "description": "whole number 0–65535",
        "minimum": 0,
        "maximum": 65535
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "binary",
      "bits",
      "roundTrip"
    ],
    "properties": {
      "binary": {
        "type": "string",
        "description": "binary digits"
      },
      "bits": {
        "type": "number",
        "description": "how many bits"
      },
      "roundTrip": {
        "type": "number",
        "description": "parsed back to decimal — must equal the input"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "value": 156
  }
}