Question: In a file use PHP to create these variables. Variable NameWhat it contains$nameYour name, string value using e . g . Usman Rizvi$favoritePlaceString value
In a file use PHP to create these variables.
Variable NameWhat it contains$nameYour name, string value using
eg Usman Rizvi$favoritePlaceString value using $distanceInteger value
Search on the web for the distance from Des Moines, WA to your favorite place.$pricePrice of the last taxable item you purchased$taxRateLook up the sales tax rate for the city where you purchased the item. It should be a number like Store the number as a double, not integer.$totalPrice$price $price $taxRate
or
$taxRate $price$likeSchoolBoolean value
Either true or false not 'true' or 'false'$bornInKingCountyEither true or false$earthPopulationLook up the earth's population. Use scientific notation with one decimal point. ege$nanometerHow big is a nanometer in inches? Use scientific notation.$virusHow big is a virus in nanometers? Use an integer.$virusInches$nanometer $virus
After you have created the variables. Display them using echo. Include text that indicates what each is as follows.
echo "Name: $name";
echo ;
Repeat these two lines for all of the other variables.
After all of the variables have been displayed add this line:
Return to index page
Put this in a file named exactly: variables.php
Create a folder named variables. Put the file named, variables.php in your variables folder that is in your folder.
variablesvariablesphp
Upload it to Chelan: studenthomeusernamepublichtmlvariablesvariablesphp
username is your Highline username
In your index.htm or index.html add a link to your file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
