Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem: In this lab, you will be using Visual Studio to create an application where you will calculate a person's lean body weight, fat
Problem: In this lab, you will be using Visual Studio to create an application where you will calculate a person's lean body weight, fat mass, percent body fat, and ideal weight. This lab uses radio buttons, text boxes, labels, buttons, and if-statements. PART A Here is a summary of the controls that you may need to complete this lab Radio buttons For Gender and Age, it would be a good idea to use a group box to place these buttons based on their category. Name the radio buttons as recommended in class use rdo, rad, or rd naming convention: rdoMale, rdoFemale, rdo30Under, rdo300ver...etc A text box control for the weight (txtWeight) 4 text box controls for measurements 4 labels next to the measurement text boxes to define each box 2 buttons btnCalculate and btnExit. 1 output label to display the computation results The measurement requirements are different for males and females. Two sample screens of a Visual C#.NET Ideal Weight Estimator program are shown below. The first one is for a male and the second one is for a female. Covert Bailey's Tape-Measure Fat Formula Gender Weight Male Female 30 and under Over 30 170 Pounds Measurements in inches 32 WAIST-Measure at greatest circumference, relaxed and confortable Calculate Ext HIPS-Feet 4 inches apart. measure greatest circumference around hips and butt. FOREARM-Clench fat, measure widest part between wist and elbow WRIST-Measure just above bony protuberance towards the hand Results You have about 146 bs of lean body weight with 24 be of fat (141) You should weigh no more than 172 bs (15% Covert Bailey's Tape-Measure Fat Formula Gender Weight O Male Female 30 and under Over 30 170 Pounds Measurements in inches 36 HIPS - Feet 4 inches apart, measure greatest circumference around hips and butt 21 12 5.75 THIGH-Stand with feet 12 inches apart, measure widest part of upper thigh CALF-Stand with weight on both feet, widest part midway between knee and ankle. WRIST-Measure just above bony protuberance towards the hand Results Calculate You have about 131 lbs of lean body weight with 39 lbs of fat (23%) You should weigh no more than 168 lbs 22% fat Ext Add a reset button, btnReset, to your form to clear the text boxes, reset the selections to Male' and '30 and under', and clear the label for the Results. The Exit button should exit the application. PART B: Design the main form for the Ideal Weight Estimator. Use radio buttons for the user to select whether they are male or female and their age range. Use text boxes for the user to enter their weight in pounds and the measurements required. The measurement requirements are different for males and females. Two sample screens of a Visual C#.NET Ideal Weight Estimator program are shown above. The first one is for a male and the second one is for a female. Notice that when the user selects MALE or FEMALE, the appropriate text boxes and labels turn on/off to prompt the user for the proper information and the text boxes should all clear (be set to empty string). For males, the calculation is based on age, weight, waist, hips, forearm, and wrist measurements. For females, the calculation requires age, weight, hips, thigh, calf, and wrist measurements. Additionally, the measurements may include decimal values or whole numbers. Once the user has finished entering the data, they can click the 'Calculate button and the following information will be displayed (as shown in the previous examples): You have about xxx lbs of lean body weight with xxx lbs of fat (xx %). You should weight no more than xxx lbs (15% fat for males, 22% fat for females). You'll need to use number and percent formatting to format the numbers to according to the number of decimals and formats shown in the example.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To get started on your C application for the Ideal Weight Estimator you need to implement the logic that calculates lean body weight fat mass percent body fat and ideal weight based on user inputs Bel...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