Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

=+professionalism and competency in handling global HR issues?

Answered: 1 week ago