`; // Append the new input elements to the form let form = document.getElementsByClassName('gradeClass')[0]; form.appendChild(newAssignment, form.lastElementChild); // Create new input elements for the new assignment newAssignment = document.createElement('div'); newAssignment.className = 'form-group'; newAssignment.innerHTML = ` `; var span = document.createElement("SPAN"); var txt = document.createTextNode("X"); span.className = "close"; span.appendChild(txt); newAssignment.appendChild(span); // Append the new input elements to the form form = document.getElementById(`grade-form-${classCounter}`); form.insertBefore(newAssignment, form.lastElementChild); // Click on a close button to hide the current list item var close = document.getElementsByClassName("close"); var i; for (i = 0; i < close.length; i++) { close[i].onclick = function() { var div = this.parentElement; div.remove(); } } var gradeSelect = newAssignment.querySelector("#letter"); var percentageSelect = newAssignment.querySelector("#grade"); // add event listener to the grade combo box to update the percentage combo box gradeSelect.addEventListener("change", function() { // get the selected grade from the grade combo box var selectedGrade = gradeSelect.value; // map the selected grade to its corresponding percentage var gradeToPercentage = { "A+": "97", "A": "93", "A-": "90", "B+": "87", "B": "83", "B-": "80", "C+": "77", "C": "73", "C-": "70", "D+": "67", "D": "63", "F": "60" }; var selectedPercentage = gradeToPercentage[selectedGrade]; // set the selected percentage in the percentage combo box percentageSelect.value = selectedPercentage; }); percentageSelect.addEventListener('change', function() { var percentageValue = parseInt(this.value); if (!isNaN(percentageValue)) { // calculate the grade letter based on the percentage value var gradeLetter = calculateGradeLetter(percentageValue); // set the selected value of the grade combo box to the corresponding grade letter for (var i = 0; i < gradeSelect.options.length; i++) { var option = gradeSelect.options[i]; if (option.value === gradeLetter) { gradeSelect.selectedIndex = i; break; } } } else { // if the percentage value is not a valid number, clear the selected value of the grade combo box gradeSelect.selectedIndex = -1; } }); document.querySelectorAll('[id=calculate-btn]').forEach(element => { element.addEventListener('click', calculateGrade); }); document.querySelectorAll('[id=add-assignment-btn]').forEach(element => { element.addEventListener('click', addAssignment); }); var num; for (num = 0; num < 2; num++) { let form = document.getElementById(`grade-form-${classCounter}`); let btn = form.querySelector("#add-assignment-btn"); btn.click(); }}function resetGrades(element = document) { var gradeSelects = element.querySelectorAll('#grade'); for (var i = 0; i < gradeSelects.length; i++) { var gradeSelect = gradeSelects[i]; // remove all existing options from the combo box while (gradeSelect.options.length > 0) { gradeSelect.remove(0); } // add new options with numbers from 60 to 100 for (var j = 100; j >= 60; j--) { var option = document.createElement('option'); option.value = j; option.text = j; gradeSelect.add(option); } }}function calculateGradeLetter(percentageValue) { var gradeLetter; switch (true) { case (percentageValue >= 97): gradeLetter = 'A+'; break; case (percentageValue >= 93): gradeLetter = 'A'; break; case (percentageValue >= 90): gradeLetter = 'A-'; break; case (percentageValue >= 87): gradeLetter = 'B+'; break; case (percentageValue >= 83): gradeLetter = 'B'; break; case (percentageValue >= 80): gradeLetter = 'B-'; break; case (percentageValue >= 77): gradeLetter = 'C+'; break; case (percentageValue >= 73): gradeLetter = 'C'; break; case (percentageValue >= 70): gradeLetter = 'C-'; break; case (percentageValue >= 67): gradeLetter = 'D+'; break; case (percentageValue >= 63): gradeLetter = 'D'; break; case (percentageValue >= 60): gradeLetter = 'D-'; break; default: gradeLetter = 'F'; } return gradeLetter;}
About Northern Michigan University
Northern Michigan University (NMU) is a public university located in Marquette, Michigan. Established in 1899, it has a student body of around 8,000 undergraduate and graduate students. NMU offers over 180 degree programs across its five academic colleges: College of Arts and Sciences, College of Business, College of Health Sciences and Professional Studies, College of Education, Leadership and Public Service and the Honors Program.
Grading and GPA System
NMU follows a four-point grading system, in which an "A" grade corresponds to a 4.0 GPA, while "F" grades correspond to a 0.0 GPA. The grading system and conversion from grade to grade point is shown below:
- A: 4.0
- A-:3.67
- B+: 3.33
- B: 3.0
- B-: 2.67
- C+: 2.33
- C: 2.0
- C-: 1.67
- D+: 1.33
- D: 1.0
- F: 0.0
The GPA system helps maintain academic standards and assists in determining eligibility for scholarships, financial aid, and honors at graduation. All students must maintain a cumulative GPA of at least 2.0 to remain in good academic standing, and graduate with a minimum of 120 credits.
Conclusion
Northern Michigan University is a vibrant learning community that offers students a personalized and challenging education. Emphasizing practical education and community engagement, NMU provides students with the tools and opportunities they need to be successful in their academic and professional lives. Its grading and GPA system ensures consistent academic standards and a fair evaluation of students’ academic performance. With strong academics and a supportive community, NMU is a great place to pursue higher education.
Related Universities:
- Eastern Michigan University GPA Calculator
- Michigan State University GPA Calculator
- Michigan Technological University GPA Calculator
- University of Michigan – Ann Arbor GPA Calculator