Write a c# function that calculates body mass index. This function should accept weight and height values and return body mass index. The body mass index formula is given below: Weight: weight Body Mass Index = height? Height: After that, you should call the function you defined in the btnCalculate click event. Finally, you should show index value and status in the listBox named as IstResults. Status is calculated according to the table given below: Body Mass Index Calculate IstResults Status 0-18 Weak 19-25 Normal Fat Obese 26-30 >30

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 5E
icon
Related questions
Question
100%
Write a c# function that calculates body mass index. This function
should accept weight and height values and return body mass index.
The body mass index formula is given below:
Form1
Weight:
weight
Body Mass Index =
height?
Height:
After that, you should call the function you defined in the
btnCalculate click event. Finally, you should show index value and
status in the listBox named as IstResults. Status is calculated
according to the table given below:
Body Mass Index
Calculate
IstResults
Status
0-18
Weak
19-25
Normal
26-30
Fat
Obese
>30
Name of tools are lblWeight, IblHeight, numWeight, numHeight,
btnCalculate. IstResults.
Transcribed Image Text:Write a c# function that calculates body mass index. This function should accept weight and height values and return body mass index. The body mass index formula is given below: Form1 Weight: weight Body Mass Index = height? Height: After that, you should call the function you defined in the btnCalculate click event. Finally, you should show index value and status in the listBox named as IstResults. Status is calculated according to the table given below: Body Mass Index Calculate IstResults Status 0-18 Weak 19-25 Normal 26-30 Fat Obese >30 Name of tools are lblWeight, IblHeight, numWeight, numHeight, btnCalculate. IstResults.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,