Question: 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


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
Get step-by-step solutions from verified subject matter experts
