Question: Php Elementary Math and Functions In this assignment you need to create a web page that generates a random math problem math problem (addition only)

 Php Elementary Math and Functions In this assignment you need to

create a web page that generates a random math problem math problem

Php

Elementary Math and Functions In this assignment you need to create a web page that generates a random math problem math problem (addition only) in the format that an elementary school student would understand (see image). The first two values (A and B] would be randomly created and the user is expected to fill in a text field (for C) with the answer and press a submit button, and then continue to see that page with arn appropriate response or a new problem. More information is given below, but I want to see at least the following things in your code. Namely: Use functions like is_numeric and rand Important: Define one or more of your own functions and use it. . First, you will want large monospaced fonts for you numbers that are right aligned in the areas you place them so that the digits line up. I suggest you create a style class and use it in the numbered text and the text field something like the style below: The other thing that will be helpful is to understand what all the different STATES are so that you can cover each one of them. As I see it the 4 STATES are as follows: 1. No variables passed to it. For this display a new problem 2. The answer is correct (e.g. A+ B c). Congratulate the user and move to a new problem 3. The answer is still emptyr non-numeric. Keep the problem there but don't say it is wrong. 4. The numeric answer is incorrect. Keep the problem and the answer with a "try again" message 5a rand (10, 99): $ rand 11,9) e-"" 9msg- "Pil1 in the blank to anawer this math question." Smsg "correct! Nox try this new problem." Smag- "You nust enter a nunber and press the subnit button." Smage "Incorrect! Please try again." i elseif (is numeric(9c) &i sar+sb$c) l else l

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!