Question
Hello. This assignment is in Visual Basic and VB Studio 4.5 Framework. Details are below with a screenshot of an example runtime. Task: Create a
Hello. This assignment is in Visual Basic and VB Studio 4.5 Framework. Details are below with a screenshot of an example runtime.
Task: Create a simple BMI calculator to take in weight in lbs or kg and a height in m or in and produce a BMI number.
For Full Credit:
Program must be well documented and controls well named according to standards.
Your program MUST contain a separate class named Calculator.Your class must contain properties for height, weight, unit of height and unit of weight.
HINT: Use Double for your height and weight data type, not decimal
HINT: Use string for the the unit types
Your class MUST contain a public function that returns the BMI
Your class MUST contain one constructor to initialize the properties.
Weight and Height must be validated as numeric.
BMI MUST be displayed as xx.x format.
To convert Weight in LBS to KG use the formula: WEIGHT_KG = WEIGHT_LBS * .45
To convert Height in INCHES to M use the formula: HEIGHT_M = HEIGHT_IN * .025
To calculate BMI, use the formula: BMI = WEIGHT_KG / HEIGHT_M ^ 2
And heres a pic of the runtime
8MI Calculator Enter Vicight and Height Celculate Clear Ext Weight Height Cument BMStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started