{
  "address": "cae0ce2d26cb5f02bcba9e3052069c4d",
  "category": "other",
  "question": "What is the GPA for grades [\"A\",\"B+\",\"B\"] with credits [3,4,3]?",
  "answer": "3.42",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "Grading System",
      "url": "https://registrar.missouri.edu/grades-calculators/grading-system/"
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "url",
    "value": "https://registrar.missouri.edu/grades-calculators/grading-system/",
    "retrieved_utc": "2026-09-30T22:25:22Z"
  },
  "qsha256": "19ec6d72290e4772bec0f1ab5e5e6df68b0e0d0a0bec92ce02165efea501e9ab",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Credit-weighted GPA",
    "version": "1",
    "source_url_or_file": "methods/gpa-weighted.cjs",
    "sha256_of_method_file": "8683b0909be460fa4dc343a14bb1850a8faf7eb7266b07ef53a00d0aecaeedf1"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "grades",
        "type": "array",
        "required": true,
        "description": "Letter grades, one per course.",
        "enum": [
          "A",
          "A-",
          "B+",
          "B",
          "B-",
          "C+",
          "C",
          "C-",
          "D+",
          "D",
          "D-",
          "F"
        ]
      },
      {
        "name": "credits",
        "type": "array",
        "required": true,
        "description": "Credit hours for each course, same length and order as grades."
      }
    ],
    "outputs": [
      {
        "name": "gpa",
        "description": "Credit-weighted grade point average on a 4.0 scale."
      }
    ],
    "steps": [
      "Convert each letter grade to grade points using the standard 4.0-scale table: A=4.0, A-=3.7, B+=3.3, B=3.0, B-=2.7, C+=2.3, C=2.0, C-=1.7, D+=1.3, D=1.0, D-=0.7, F=0.0.",
      "Multiply each course's grade points by its credit hours and sum the results.",
      "Divide by the sum of all credit hours.",
      "Round to 2 decimals."
    ],
    "constants": [
      {
        "name": "grade_point_scale_4_0",
        "value": "{\"A\":4,\"A-\":3.7,\"B+\":3.3,\"B\":3,\"B-\":2.7,\"C+\":2.3,\"C\":2,\"C-\":1.7,\"D+\":1.3,\"D\":1,\"D-\":0.7,\"F\":0}",
        "unit": "grade points",
        "source": 0
      }
    ],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "grades": [
            "A",
            "B+",
            "B"
          ],
          "credits": [
            3,
            4,
            3
          ]
        },
        "expected": {
          "answer": "3.42"
        },
        "check": "By hand: 4.0*3=12, 3.3*4=13.2, 3.0*3=9; sum=34.2; total credits=10; gpa=34.2/10=3.42."
      },
      {
        "name": "test vector: mixed grades",
        "inputs": {
          "grades": [
            "A-",
            "C",
            "B-"
          ],
          "credits": [
            3,
            3,
            3
          ]
        },
        "expected": {
          "answer": "2.80"
        },
        "check": "By hand: 3.7*3=11.1, 2.0*3=6, 2.7*3=8.1; sum=25.2; total credits=9; gpa=25.2/9=2.80."
      }
    ],
    "disclaimer": null,
    "deck_category": "other"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "url",
          "value": "https://registrar.missouri.edu/grades-calculators/grading-system/",
          "retrieved_utc": "2026-09-30T22:25:22Z"
        },
        "sha256": "34e86a3b20caf7384699d42336ba0d417edc216baff0a6af7e4095db641c1179",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Credit-weighted GPA",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
