JavaScript Functions Part 3: Multiplication Learning Game

Objectives

  • Write a program that will help an elementary school student learn multiplication
  • Use Math.random to produce two one-digit integers from 0 to 9
  • Present the two numbers in a multiplication question
  • Use an input box to provide answer
  • Your program checks the answer
  • Reset for new question

Multiplication Learning Game

Do you want to play again?

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