{
  "tool": "matric-nqf4.sci_internal_resistance",
  "name": "EMF and internal resistance (CDU-GEN-NSC-400)",
  "answers": "Current, terminal potential difference and the power split for ε = I(R + r), with the energy check εI = P_R + P_r.",
  "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": "CAPS Grade 12 Physical Sciences, worked reference P9 (offline reconstruction); ε = I(R + r); P = I²R",
  "endpoint": "/faculty/matric-nqf4/sci_internal_resistance",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "emf",
      "internalResistance",
      "loadResistance"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "emf": {
        "type": "number",
        "description": "ε (V) (V)",
        "minimum": 0.001,
        "maximum": 1000000
      },
      "internalResistance": {
        "type": "number",
        "description": "r (Ω) (Ω)",
        "minimum": 0,
        "maximum": 1000000
      },
      "loadResistance": {
        "type": "number",
        "description": "R (Ω, > 0) (Ω)",
        "minimum": 0.001,
        "maximum": 1000000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "current",
      "terminalPd",
      "powerLoad",
      "powerInternal"
    ],
    "properties": {
      "current": {
        "type": "number",
        "description": "I (A)"
      },
      "terminalPd": {
        "type": "number",
        "description": "V = IR (V)"
      },
      "powerLoad": {
        "type": "number",
        "description": "P_R = I²R (W)"
      },
      "powerInternal": {
        "type": "number",
        "description": "P_r = I²r (W)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "emf": 12,
    "internalResistance": 1,
    "loadResistance": 5
  }
}