Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a php script that has two variables v1 and v2. It performs the following operations: --v1 v1 =v1 /v2-. v1-(v2 2)+15.4; v2 +V1

image text in transcribed

image text in transcribed

1. Write a php script that has two variables v1 and v2. It performs the following operations: --v1 v1 =v1 /v2-. v1-(v2 2)+15.4; v2 +V1 v1 v2; After each operation above has been done, the program prints the result. (25 points) Write a php function that has two variables, representing the weight in pounds and height in inches of a person. Then, it calculates and displays the user's body mass index (BMI). The formula is listed below: 2. weightln Pounds x 703 heightInInches height lnlnches BMI = Finally, it evaluates the value of BMI based on the information from the Department of Health and Human Services/National Institutes of Health listed below and displays the evaluation result. (25 points) BMI VALUES Underweight: less than 18.5 Normal: Overweight: between 25 and 29.9 Obese: between 18.5 and 24.9 30 or greater Call this function for 3 times

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions