{
  "id": "test-grade",
  "version": "521cbc5452c7",
  "status": "published",
  "name": "Test Grade Calculator",
  "question": "What is my test grade?",
  "summary": "Computes a test grade in percent and its letter from the number of questions and the number wrong, or finds the number wrong allowed for a grade.",
  "category": "education",
  "subcategory": "test-scores",
  "url": "https://www.acalculator.org/education/test-grade-calculator",
  "markdown": "https://www.acalculator.org/education/test-grade-calculator.md",
  "kind": "formulas",
  "method": "right = questions − wrong; grade = 100 × right ÷ questions",
  "assumptions": [
    "Every question is worth the same, or the numbers are points: questions as points possible, wrong as points lost.",
    "Fill in any two of questions, wrong, right, and grade; the calculator finds the other two.",
    "Letter grades follow the Tompkins Cortland Community College (SUNY) scale: A 93 and up, A- 90 to below 93, B+ 87, B 83, B- 80, C+ 77, C 73, C- 70, D+ 67, D 63, D- 60, F below 60."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "total": {
        "title": "Questions",
        "description": "The number of questions on the test, or its points possible.",
        "type": "number",
        "minimum": 1,
        "maximum": 100000
      },
      "wrong": {
        "title": "Wrong",
        "description": "The number of questions answered wrong, or the points lost.",
        "type": "number",
        "minimum": 0,
        "maximum": 100000
      },
      "correct": {
        "title": "Right",
        "description": "The number of questions answered right, or the points earned.",
        "type": "number",
        "minimum": 0,
        "maximum": 100000
      },
      "percent": {
        "title": "Grade",
        "description": "The test grade in percent: right answers ÷ questions × 100.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 100
      }
    }
  },
  "solve": {
    "fillAny": 2,
    "variables": [
      "total",
      "wrong",
      "correct",
      "percent"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "total": {
      "label": "Questions",
      "description": "The number of questions on the test, or its points possible.",
      "format": "number"
    },
    "wrong": {
      "label": "Wrong",
      "description": "The number of questions answered wrong, or the points lost.",
      "format": "number"
    },
    "correct": {
      "label": "Right",
      "description": "The number of questions answered right, or the points earned.",
      "format": "number"
    },
    "percent": {
      "label": "Grade",
      "description": "The test grade in percent: right answers ÷ questions × 100.",
      "format": "percent"
    },
    "letter": {
      "label": "Letter grade",
      "description": "The letter for the grade on the Tompkins Cortland Community College scale.",
      "format": "text"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "total": 40,
      "wrong": 6
    },
    "outputs": {
      "correct": 34,
      "percent": 85,
      "letter": "B"
    },
    "text": "6 wrong out of 40 is 85% (B)."
  },
  "examples": [
    {
      "given": {
        "total": 40,
        "wrong": 6
      },
      "expect": {
        "correct": 34,
        "percent": 85,
        "letter": "B"
      },
      "source": "hand calculation in content.mdx: 100 × (40 − 6) ÷ 40 = 85%"
    },
    {
      "given": {
        "total": 25,
        "wrong": 2
      },
      "expect": {
        "correct": 23,
        "percent": 92,
        "letter": "A-"
      },
      "source": "hand calculation in content.mdx: 100 × 23 ÷ 25 = 92%"
    },
    {
      "given": {
        "total": 30,
        "percent": 80
      },
      "expect": {
        "correct": 24,
        "wrong": 6,
        "letter": "B-"
      },
      "source": "hand calculation in content.mdx: 80 × 30 ÷ 100 = 24 right, 6 wrong"
    },
    {
      "given": {
        "wrong": 3,
        "percent": 85
      },
      "expect": {
        "total": 20,
        "correct": 17
      },
      "source": "hand calculation in content.mdx: questions = 100 × 3 ÷ (100 − 85) = 20"
    },
    {
      "given": {
        "total": 12,
        "wrong": 5
      },
      "expect": {
        "percent": 58.333333333333336,
        "letter": "F"
      },
      "source": "hand calculation in content.mdx: 100 × 7 ÷ 12 = 58.33%"
    }
  ],
  "sources": [
    "Tompkins Cortland Community College (SUNY), Grading System: grading scale for converting between numerical and letter grades (A 93–100 through F 59 and below). https://www.tompkinscortland.edu/sites/default/files/documents/CollegeNow%20Grading%20Scale.pdf"
  ],
  "related": [
    "test-score",
    "grade",
    "final-grade"
  ],
  "changelog": []
}
