FDGDFGD
FDGDFGD
Using PHP operators create a length conversion page, integrated with HTML and CSS (note:
use formula for each conversion) Example: 1 meter = 100 centimeter
Output
HTML:
PHP:
This is to convert the user input to its
meter value.
OUTPUT:
IMAGES:
HTML:
PHP:
CSS:
3. Using Looping Statements write a program which will give you all of the potential
combinations of a two-digit decimal combination, printed in a comma delimited format
OUTPUT:
PHP:
VII. QUESTION AND ANSWER
1. What are the different Arithmetic operators used in the lab activity? describe each
I used the “ * “, “ / “, and “++”.
• Multiplication Arithmetic Operator (*)
- it is used to get the product of two numbers.
Yes, you can apply formula in webpages using PHP. In this activity, formula for converting
measurements is used. One of the formula used in this activity is “$meterVal = $userinput*0.001;”.
This formula is used to convert millimeter t to its equivalent meter value.