Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Visual Studios - Console App (.NET Framework) - C# Design an app that measures the user's BMI (Body Mass Index) and diagnose the user'

Using Visual Studios - Console App (.NET Framework) - C#

Design an app that measures the user's BMI (Body Mass Index) and diagnose the user' s current health condition based on their BMI result. You must follow the programming requirement for this app (classes,functions, methods ...etc).

The entire app must contain 3 classes; HeightConverterc class, BMICalculator class and BMIRangeDiagnostic class.

The formula for Foot to Inch = 1 foot = 12 inches.

The formula for BMI = Weight In Pounds x 703 Divided by Height in Inches Squared.

a) The HeightConverter class has a function that takes in 2x parameters/arguments from the user (height in foot and height in inches). E.g. someone that is 6ft 2.5" will enter 6 and 2.5 into the app on Main().

The height in Foot would need to be converted into inches by the HeightConverter Class's function (refer to the formula on top of this assignment). After the conversion, the result will be return to Main(). E.g. 6ft 2.5" will be (6 x 12) + 2.5 = 74.5 inches

b) The BMICalculator class has a CalculateBMI() function that will calculate the user's BMI value (refer to the formula on top of this assignment). This function requires the user's total height in Inches (from item (a) above) and the user's weight in pounds (lbs). Create a function CalculateBMI() that will take in these 2 values as parameters. After the calculation, the user's BMI result will need to be returned back to Main(). Observation: Notice that Main() is the central nervous system for this program. all user's input and results from classes are all being sent out and returned to Main(). This is why we are using Functions instead of Methods.

d) BMIRangeDiagnostic class has a method DetermineBMIDiagnosis() that takes the BMI result from Main() (from (b) above) as its parameter. This method will let the user know of their health condition based on their BMI result.

The BMI formula is as the following;

BMI < 18.50 = Clinically Underweight

BMI 18.5 - 24.99 = Normal Weight

BMI 25 - 29.99 = Clinically Overweight

BMI > 30 = Clinically Obese

Display the user's current health condition on the screen.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

Students also viewed these Databases questions

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

What is loss of bone density and strength as ?

Answered: 1 week ago