Question: In this assignment you will be exposed to variables, assignment statements, arithmetic operations, and displaying information using php. 1. Create a new document in your
In this assignment you will be exposed to variables, assignment statements, arithmetic operations, and displaying information using php. 1. Create a new document in your text editor (notepad++) 2. Type the declaration, element, header information, and
element. Use Variables and Arithmetic Operations as the content of the
6. Change the instructions that you have written in 4a and 4b to use the rand() php build in function to generate random numbers between 1 and 100 and assign them to the variables $number_one and $number_two. For example, the statement $number_one = rand(1, 100); Will generate a random integer between 1 and 100 (inclusive) and will assign it to the variable $number_one. Save your file and open it in your Web browser. You will notice that every time you refresh the page, a different set of integer numbers are assigned to the variables $number_one and $number_two and, the results of the operations change accordingly.
Step by Step Solution
There are 3 Steps involved in it
To accomplish the tasks mentioned in the assignment you need to follow the instructions step by step ... View full answer
Get step-by-step solutions from verified subject matter experts
