Form1 should accept weight and height values and return body mass index. The body mass index formula is given below: weight height? Weight: Body Mass Index = Height: After that, you should call the function you defined in the atnCalculate 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 Weak Normal Fat Obese 0-18 19-25 26-30 >30 ame of tools are lblWeight, lblHeight, numWeight, numHeight, tnCalculate, IstResults.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 13E
icon
Related questions
Question
"C# language"
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
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to computer system
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr