Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help with thie lab for my coding class. i have the interface done i just need help with the code(c#). thank you In

image text in transcribed
image text in transcribed
i need help with thie lab for my coding class. i have the interface done i just need help with the code(c#). thank you
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 (bxtWeight) - 4 text box controts for measurements - 4 labets 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 fernale. Covert Bailey's Tape-Measure Fat Formula - 0 * Gender - Male O Fenale Measuremerts in inches WAST - Measun a geatest orounference, relend and coefoesile. HIPS-Feet 4 inches acat, meature gestest crcurforence around hige and but FOREAPM - Cench fies, meature widet pat berween mest and sbow. WRist. Mosure jut above bony protiberence towads the hand. Reauts You have about 146 bs of lean body wegt wth 24 be di fse (14t). You should wegh ne more than 172 be (t5t fat). Measurenerts in inches HiPS - Feet 4 inches apat, measure geatest crounference around hips and butt THiGH - Sand wth feet 12 inches apat, measure wideat pat of upper thigh. CALF - Sand wth weigt on both feet. widest pat midway between knee and aribe. WRIST - Measure just above bory protuberance towards the hand. Rests You have about 131be of leon body wegte weh 39 be of tat (234) You should weigh no more than 168 be (2etiat) 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 Ci. .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 Ibs 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

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago