Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help doing this lab for my engineering class. Thank you Problem: In this lab, you will be using Visual Studio to create an
I need help doing this lab for my engineering class. Thank you
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, rdo 30 Under, rdo 300 ver ...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 Male Female Age - 30 and under Over 30 170 Pounds Measurements in inches WAIST - Measure at greatest circumference: relaxed and comfortable. HIPS - Feet 4 inches apart, measure greatest circumference around hips and butt. FOREARM - Clench fist, measure widest part between wrist and elbow. WRIST - Measure just above bony protuberance towards the hand. Results You have about 146 bs of lean body weight with 24 lbs of fat (14\%). You should weigh no more than 172lbs (15\% fat). Measurements in inches HIPS - Feet 4 inches apart, measure greatest crounference around hips and butt. THIGH - Stand with feet 12 inches apat, 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. Resuts You have about 131lbs of lean body weight wth 39lbs of fat (23\%). You should weigh no more than 168bs (22\%, fat). 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 exampleStep 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