JavaScript Functions Part 1: Student Grade Calculator

Objectives

  • Create a form with input boxes and validate as integers
  • Calculate and display final average using formula
  • Output final average and letter grade
  • Add a button for submitting data and clearing form
  • Add a text area to present results and/or error message

Student Grades


Part 1


Create a script that calculates a student's final class grade by finding the average scores homework, exams, and participation. The output will show both percentage number and letter grade with the message if student passes or fails the class.

View Part 1

Part 2


Create a script that shows commission earned by salesperson by finding total dollar amount of items sold of various prices, then calculating a percentage of the total amount, finally adding the salesperson's set weekly payment.

View Part 2

Part 3


Program a game that helps elementary students learn multiplications. Showing two random one-digit integers with an input field for student to enter their answer. The script will check if the answer is correct and output a message depending if the answer is correct or not. The student will have the option reset the game and play again or end their session.

View Part 3