This form takes the users input data and do math operations.
This is the entry point of the application. It consists of html layout with math form inside.
Provides math operations with data.
- Parameters:
$firstOperand
for first field entry,$operator
for second field entry,$secondOperand
for third filed entry.
- Main methods are:
__construct()
for setting values for properties of the class from POST request,setResultOfTheMathOperation()
to set result of the math operations to$result
property,addition()
for addition operation,subtraction()
for subtraction operation,multiplication()
for multiplication operation,division()
for division operation.
Bootstrap file for html layout.
Font Awesome file for html layout.
Main stylesheet for custom style.
Bootstrap file for dynamic html layout.
JQuery file for dynamic layout and AJAX support.