For a 200-pound person, that means about 70 grams of protein each day.For a 140-pound person, that means about 50 grams of protein each day.The National Academy of Medicine recommends that adults get a minimum of 0.8 grams of protein for every kilogram of body weight per day, or just over 7 grams for every 20 pounds of body weight. Nine amino acids-histidine, isoleucine, leucine, lysine, methionine, phenylalanine, threonine, tryptophan, and valine-known as the essential amino acids, must come from food. Because we don’t store amino acids, our bodies make them in two different ways: either from scratch, or by modifying others. Protein is made from twenty-plus basic building blocks called amino acids. At least 10,000 different proteins make you what you are and keep you that way. It makes up the enzymes that power many chemical reactions and the hemoglobin that carries oxygen in your blood. Protein is found throughout the body-in muscle, bone, skin, hair, and virtually every other body part or tissue. – Test your protein knowledge! What Is Protein? – The bottom line: choosing healthy protein foods Learn the basics about protein and shaping your diet with healthy protein foods. Private Sub ClearButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClearButton.Protein is an essential macronutrient, but not all food sources of protein are created equal, and you may not need as much as you think. 'Events that are undergone when Metric Radio button is checked Private Sub MetricRadioButton_CheckedChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MetricRadioButton.CheckedChanged 'Events that are undergone when Imperial Radio button is checked Private Sub ImperialRadioButton_CheckedChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ImperialRadioButton.CheckedChanged Private Sub GroupBox1_Enter( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter !!", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) 'show this message if no input is entered MessageBox.Show( "Please choose one of the System. "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) MessageBox.Show( "Please input a positive values of weight and height. MessageBox.Show( "Error:" & AnException.Message, "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) MessageBox.Show( "Quantity value is out of limits", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) MessageBox.Show( "Quantity MUST be a numeric value", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)Ĭatch QuantityOverflowException As OverflowException MessageBox.Show( "Weight value MUST be a positive number greater than 0", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)Ĭatch QuantityFormatException As FormatException MessageBox.Show( "Height value MUST be a positive number greater than 0", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) If (BMIDecimal rangebound1 And BMIDecimal < rangebound2) Then If (BMIDecimal rangebound1 And BMIDecimal "" Or HeightTextBox.Text "" ) Then 'chech whether HeightTextBox and weightTextBox are filledīMIDecimal = (WeightDecimal * impconstant) / (HeightDecimal * HeightDecimal) 'logic for Imperial calculations If (HeightDecimal > 0 ) Then 'check for positive weight valueīMIDecimal = (WeightDecimal) / (HeightDecimal * HeightDecimal) 'logic for metric calculationsīMITextBox.Text = BMIDecimal.ToString( "f" ) If (WeightDecimal > 0 ) Then 'check for positive weight value Parse(HeightTextBox.Text) 'assign variable to the textbox Parse(WeightTextBox.Text) 'assign variable to the textbox If (WeightTextBox.Text "" Or HeightTextBox.Text "" ) Then 'chech whether HeightTextBox and weightTextBox are filled If (MetricRadioButton.Checked = True ) Then 'check metric radio button is checked If (MetricRadioButton.Checked = True Or ImperialRadioButton.Checked = True ) Then 'check whether radiobutton are checked Private Sub CalculateButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalculateButton.Clickĭim WeightDecimal, HeightDecimal, BMIDecimal As Decimal Private Sub ExitButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click Private Sub BMI_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase. The input may be in Imperial or Metric format. 'Purpose - BMI Calculator will calculate your Body Mass Index depending on height and weight.
0 Comments
Leave a Reply. |