Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE WRITE CODES IN C#, USING windows forms app (.net framework) /* * Use Try Catch to handle exceptions in the input data * Calculate

PLEASE WRITE CODES IN C#, USING windows forms app (.net framework)image text in transcribed /* * Use Try Catch to handle exceptions in the input data * Calculate height in inches: height in inches = feet * 12 + inches * Calculate the BMI given weight (pounds) and height (inches) using the following formula: * BMI = weight * 703 / height squared * * Display BMI to 2 decimal places * * Reset button - clear all inputs and outputs and place the cursor at textbox1 * Exit button - exit the application */ image text in transcribed

Body Mass Index (points allocated: 24, 3, 1) o button Calculate BMI o get inputs from the textboxes; use Exception Handling to make sure that weight and height entered are numbers (note that as of now, we are not working on the data within a valid range. That comes next after the midterm.) o create another variable to calculate height in inches, height in inches = feet * 12 + inches o calculate BMI using the formula given (formula shown in the textbook and written out in the comments) o display BMI in the output label (label4) to 2 decimal places. o button Reset clear the input textboxes and output labels, set the focus on the first textbox o button Exit - exit the application o Here is an example of a website where you can check your BMI calculation Body Mass Ind... Your Weight 165 Pounds Your Height 5 10.51 Inches Feet Your BMI is 23.34 Calculate BMI Reset Exit Body Mass Ind... X Your Weight 19) Pounds Your Height 5 11 Inches Feet X Data error in Pounds and/or Feet and/or Inches OK

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_2

Step: 3

blur-text-image_3

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

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions

Question

Click the 100 button. What do you about the atoms in the chamber

Answered: 1 week ago