AP World Score Calculator
Basic Calculator
Advanced Calculator
Enter your scores to calculate your AP World History score
Enter detailed scores to calculate your AP World History score
function showBasic() {
document.getElementById("basicCalculator").style.display = 'block';
document.getElementById("advancedCalculator").style.display = 'none';
}
function showAdvanced() {
document.getElementById("advancedCalculator").style.display = 'block';
document.getElementById("basicCalculator").style.display = 'none';
}
function calculate() {
if (document.getElementById("basicCalculator").style.display !== 'none') {
const mcScore = parseFloat(document.getElementById("mcScore").value);
const saqScore = parseFloat(document.getElementById("saqScore").value);
const leqScore = parseFloat(document.getElementById("leqScore").value);
const dbqScore = parseFloat(document.getElementById("dbqScore").value);
if (!isNaN(mcScore) && !isNaN(saqScore) && !isNaN(leqScore) && !isNaN(dbqScore)) {
const totalScore = mcScore + saqScore + leqScore + dbqScore;
document.getElementById("totalScore").value = totalScore.toFixed(2);
} else {
alert("Please fill in all fields to calculate the total score.");
}
} else {
const mcCorrect = parseFloat(document.getElementById("mcCorrect").value);
const mcTotal = parseFloat(document.getElementById("mcTotal").value);
const saqCorrect = parseFloat(document.getElementById("saqCorrect").value);
const saqTotal = parseFloat(document.getElementById("saqTotal").value);
const leqScoreAdv = parseFloat(document.getElementById("leqScoreAdv").value);
const dbqScoreAdv = parseFloat(document.getElementById("dbqScoreAdv").value);
if (!isNaN(mcCorrect) && !isNaN(mcTotal) && !isNaN(saqCorrect) && !isNaN(saqTotal) && !isNaN(leqScoreAdv) && !isNaN(dbqScoreAdv)) {
const mcPercentage = mcCorrect / mcTotal * 100;
const saqPercentage = saqCorrect / saqTotal * 100;
const totalScore = mcPercentage + saqPercentage + leqScoreAdv + dbqScoreAdv;
document.getElementById("totalScoreAdv").value = totalScore.toFixed(2);
} else {
alert("Fill in all fields to calculate the total score.");
}
}
}
function resetFields() {
document.getElementById("mcScore").value = '';
document.getElementById("saqScore").value = '';
document.getElementById("leqScore").value = '';
document.getElementById("dbqScore").value = '';
document.getElementById("totalScore").value = '';
document.getElementById("mcCorrect").value = '';
document.getElementById("mcTotal").value = '';
document.getElementById("saqCorrect").value = '';
document.getElementById("saqTotal").value = '';
document.getElementById("leqScoreAdv").value = '';
document.getElementById("dbqScoreAdv").value = '';
document.getElementById("totalScoreAdv").value = '';
}
.styled-input {
border: 2px solid #0093da;
border-radius: 5px;
padding: 10px;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
background-color: #fff;
transition: all 0.3s ease;
}
.styled-input:focus {
border-color: #007bb5;
box-shadow: 0 0 5px rgba(0, 115, 175, 0.5);
outline: none;
}
Enter your multiple choice, short answer, long essay, and document-based question scores into the calculator to determine your AP World History score.