Question
In PHP 1. Type the declaration, element, header information, and element. Use Variables and Arithmetic Operations as the content of the element. 2. Add the
In PHP
1. Type the declaration, element, header information, and
element. Use Variables and Arithmetic Operations as the content of the
2. Add the following standard PHP script delimiters to the document body: 3. Add the following statements to the script section. a. Assign the integer 20 to a variable named $number_one. b. Assign the integer 30 to a variable named $number_two. c. Assign the sum of the values that stored in the variables $number_one and $number_two to a variable named $addition. d. Assign the difference of the values that stored in the variables $number_one and $number_two to a variable named $difference. e. Assign the product of the values that stored in the variables $number_one and $number_two to a variable named $product. f. Assign the division of the values that stored in the variables $number_one and $number_two to a variable named $division. g. Assign the remainder of the division of the values stored in the variable $number_one and $number_two to a variable named $remainder. h. Write the echo statement to display the following line: 20 + 30 = 50 Note: Do not include the numbers 20, 30, and 50 in the echo statements. Include the variables whose values are those numbers ($number_one, $number_two, and $addition.) i. Write the echo statement to display the following line: 30 20 = 10 Again, do not include the numbers 30, 20 and 10 in the echo statement but rather the variables that store those values. j. Write the echo statement to display the following line: 20 * 30 = 600 Same as above, Use variable names in the echo statement. k. Write the echo statement to display the following line: 30 / 20 = 1.5 Same as above, use variable names in the echo statement. l. Write the echo statement to display the following line: 30 % 20 = 10 Same as above, use variable names.
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