PHP files that receive, process and display data

Feb 1st, 2014
Price: $10 USD

Question description

You need to create the PHP files that will receive, process, and display the data.

1)  Create two files named “Show_me_post.php” and “Show_me_get.php”. These files should display the data provided by the user as follows:

Hello <name>
You entered the following text: <display the supplied text>

2)  Expand the form to prompt for the user’s age and the current temperature (Celsius). Expand your PHP to receive and store all the values in appropriately named variables and include in your displayed output the user’s age and current temperature.

3)  Add a section to display true or false indicating if the user is of drinking age (the current drinking age is 21) and if the temperature is below freezing:

You are presently old enough to drink: true
Below Freezing: true

Note: If you echo a Boolean variable, the value FALSE displays as a blank string; the value TRUE echoes as a 1. To display a ‘True’ or ‘False’ create an intermediary variable and set it to ‘True’ or ‘False’ using a conditional operator (see page 138).

4)  Determine and display the user’s age in dog years.

5)  Calculate and display the temperature in Fahrenheit (to determine the temperature in Fahrenheit take nine-fifths of the degrees in Celsius then add 32)

6)  Tip, Tax, and Total: Design your own HTML form and corresponding PHP page to calculate the total amount of a meal purchased as a restaurant. The form should simply ask the user to enter the charge for the meal, pass the value to your PHP using either GET or POST , and then calculate the amount of a 15 percent tip and a 7 percent sales tax. The PHP should display the cost of the meal, the tip, the sales tax, and the total.

Tutor Answer

(Top Tutor) Daniel C.
School: Boston College

Studypool has helped 1,244,100 students

Review from our student for this Answer

Feb 2nd, 2014
"all I can say is wow very fast work, great work thanks"
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1825 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors