Q1 (5 marks): Create an HTML form to calculate a person's body mass index (BMI), based...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q1 (5 marks): Create an HTML form to calculate a person's body mass index (BMI), based on the person's height and weight. Specifically, create a form, on which users can input height and weight, and write some PHP code to calculate BMI based on the input. Use the following formula: //metric bmi = kg/(2* m) Write a handler.php scripts that does the following: once the user clicks on the submit button on the form below, the handler should process the data and print in the format shown below a message that depends on the calculated BMI value. It should always print "Your BMI value is "concatenated with the BMI value, and then concatenated with the" and you are: ", then concatenated with a string (call it $output) that depends on BMI value as follows: if bmi 18.5 and bmi 24.9 and bmi 30.0 output = "OBESE"; the following is an example input/output Insert weight in kilograms (kg): 90 Insert your Height in meters (m): [1.8 submit Your BMI value is 27.777777777778 and you are : OVERWEIGHT Q1 (5 marks): Create an HTML form to calculate a person's body mass index (BMI), based on the person's height and weight. Specifically, create a form, on which users can input height and weight, and write some PHP code to calculate BMI based on the input. Use the following formula: //metric bmi = kg/(2* m) Write a handler.php scripts that does the following: once the user clicks on the submit button on the form below, the handler should process the data and print in the format shown below a message that depends on the calculated BMI value. It should always print "Your BMI value is "concatenated with the BMI value, and then concatenated with the" and you are: ", then concatenated with a string (call it $output) that depends on BMI value as follows: if bmi 18.5 and bmi 24.9 and bmi 30.0 output = "OBESE"; the following is an example input/output Insert weight in kilograms (kg): 90 Insert your Height in meters (m): [1.8 submit Your BMI value is 27.777777777778 and you are : OVERWEIGHT
Expert Answer:
Related Book For
Statistics For Business And Economics
ISBN: 9780132745659
8th Edition
Authors: Paul Newbold, William Carlson, Betty Thorne
Posted Date:
Students also viewed these programming questions
-
Discuss in a short paragraph (3-5+ sentences) how the theory of the diffusion of innovation does or does not apply to your communication campaign.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Determine the beam column shown below is capable of safely carrying the applied loads. Given loads were determined by using LRFD provisions and bending moment diagrams are obtained from second order...
-
A man having weight W attempts to lift himself using one of the two methods shown, determine the total force he must exert on bar AB in each case and the normal reaction he exerts on the platform at...
-
Duckies, Etc. is a bath toy manufacturer reviewing their current Balance Sheet Assets as of April 30, 2015 $000s Liabilities &SH Equity $000s Cash and Cash Equiv. $34 Accounts Payable ### Accounts...
-
Consider the heat treating data in Table B.12. Split the data into prediction and estimation data sets. a. Fit a model to the estimation data set using all possible regressions. Select the minimum...
-
Bliesmer Company incurred the following costs. 1. Sales tax on factory machinery purchased ........... $ 5,000 2. Painting of and lettering on truck immediately upon purchase ... 700 3. Installation...
-
Case Study Read the below Strait Times (March 2023) article and answer the questions that follow. The authorities in many countries have destroyed unused Covid-19 vaccine stocks that have expired, or...
-
Referring to the level 0 data flow diagram below, please construct the Level 1 Data Flow Diagram for this Revenue Cycle in detail. Customer Payments Bank Sales Order Bill of Lading Packing Slip...
-
In [ ]: Write a function that takes two arguments, an array of day-of-week numbers and an array of rainfall amounts and returns the midweek and weekend average rainfall as defined by the NASA...
-
At what age are juveniles truly capable of understanding the seriousness of their actions?
-
Determine the value of the Earth's mass using the value of \(g=9.81 \mathrm{~m} / \mathrm{s}^{2}\) and that of \(G\) given in (10.30). Earth's radius is \(R_{T}=6370 \mathrm{~km}\). G = 6.67430(15) x...
-
What factors contribute to the aging-out process?
-
What causes parents to abuse their children?
-
Discuss the racial differences found in the crime rate. What factors account for differences in the African American and white crime rates?
-
Q2 Study the following data and use it to answer the questions given. Data Cost of motor car Trade-in price after 2 years or 60,000 kilometers is expected to be Maintenance - 6-monthly service...
-
Interview managers at three companies in your area about their use of ERP. How have their experiences been similar? What accounts for the similarities and differences?
-
Tiger Funds Ltd. operates a number of mutual funds in high technology and in financial sectors. Hussein Roberts is a fund manager who runs a major fund that includes a wide variety of technology...
-
A company wants to estimate the proportion of people who are likely to purchase electric shavers from those who watch the nationally telecast baseball playoffs. A random sample obtained information...
-
Consider a regression model that uses 48 observations. Let ei denote the residuals from the fitted regression and y`i be the in-sample predicted values of the dependent variable. The least squares...
-
Most countries in Europe do not have stringent laws to protect whistleblowers. True/false
-
In view of significant financial losses to investors, corporate fraud does not really affect the U.S. economy and investor confidence. True/false
-
Auditors should not demand full access to the entire general ledger so that they can be more focused on the audit. True/false
Study smarter with the SolutionInn App