Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a php web page (name the file bmi.php) that displays a person's BMI (Body Mass Index) based on the weight and height values that

Create a php web page (name the file bmi.php) that displays a person's BMI (Body Mass Index) based on the weight and height values that are passed to the web page as data in the form. The formula is:

 BMI = 704.5 * (weight / height2) where weight is in pounds and height is in inches 

Your php script should get two values for the height since that is how people usually identify their height in feet and inches (such as 5 feet and 10 inches tall). The weight given will simply be the number of pounds the person weighs (such as 168.5 pounds). The submit should also pass in the person's name so that you can include the name of the person that this calculation is for in the web page.

You php script should generate all of the following, including the major heading and a sub-heading (with your name and course), the BMI table (as an HTML table), and the person's Name, Height, Weight, and BMI, as suggested below:

Sample output:

BMI STATUS

<18.5 underwieght

18.5- 25 normal

25-30 overwieght

30-40 obese

>40 morbidly obese

Hello NNNNNNN, Based on your height of N feet and N inches and your weight of NNN.N pounds your BMI is NN.NNNNNNNN 

Cascade your output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What does the term noncontrolling interest mean?

Answered: 1 week ago