Student Marksheet Web App
Enter marks for each subject to calculate total marks and grade:
Total Marks:
Grade:
function calculateMarks() {
var maths = parseInt(document.getElementById(“maths”).value);
var science = parseInt(document.getElementById(“science”).value);
var english = parseInt(document.getElementById(“english”).value);
var totalMarks = maths + science + english;
document.getElementById(“totalMarks”).innerText = totalMarks;
var percentage = totalMarks / 3;
if (percentage >= 90) {
document.getElementById(“grade”).innerText = “A+”;
} else if (percentage >= 80) {
document.getElementById(“grade”).innerText = “A”;
} else if (percentage >= 70) {
document.getElementById(“grade”).innerText = “B”;
} else if (percentage >= 60) {
document.getElementById(“grade”).innerText = “C”;
} else if (percentage >= 50) {
document.getElementById(“grade”).innerText = “D”;
} else {
document.getElementById(“grade”).innerText = “F”;
}
}
For Source Code :
https://www.dezven.com/project/student-marksheet-web-app?s=y
Sir plz apna link again send krden
Sir s ka tutorial lectures hi