PHP files that receive, process and display data

Feb 1st, 2014
RockCafe
Category:
Programming
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.
(997)
School: Boston College
PREMIUM TUTOR

Studypool has helped 1,244,100 students

3 Reviews


Summary
Quality
Communication
On Time
Value
BlueOcean
Nov 10th, 2016
" Awesome! Exactly what I wanted. "
ashleyisgod
Oct 19th, 2016
" Top quality work from this guy! I'll be back! "
Molly_Moon
Sep 26th, 2016
" AMAZING as always! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1819 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