Question
Create a page in PHP that will display a random math question for kids. It should have 2 random numbers and a random operator (Should
Create a page in PHP that will display a random math question for kids. It should have 2 random numbers and a random operator (Should use division, multiplication, addition, and subtraction). Keep the random numbers between 1-10 for school kids.
Example:
random # 1: 4
random # 2: 10
random operator "+"
Page would display a form with the text 4+10= and a submit button.
When the user enters in a number and submits, reload the same page and let them know if they answered it correctly. If they did not, show them the correct answer.
Everytime you load this page you should get a new math problem to solve.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started