
Stel je C + + BMI code op Windows of Linux /Unix-platforms . kopen van 2
Ga naar www.arachnoid.com om uw C + + BMI code op Windows.
3
Ga naar www.arachnoid.com C + + handleiding pagina voor C + + BMI code setup op Unix
4
Uitvoeren regels code 1-59 als volgt op het juiste platform .
01 using System;
02 gebruik System.Collections.Generic;
03 gebruik System.ComponentModel;
04 gebruik System.Data;
05 gebruik System.Drawing;
06 gebruik System.Linq;
07 gebruik System.Text;
08 gebruik System.Windows.Forms;
09
10 namespace BMIApp
11 {
12 public partial class Form1 : Vorm
13 {
14 openbare Form1 ( )
15 {
16 InitializeComponent ( );
17 }
18
19 private void btnCalculate_Click (object , _EventArgs_e ) op Twitter
20 {
21 dubbele weght = string.IsNullOrEmpty ( txtWeight.Text ) ? 1 : double.Parse ( txtWeight.Text );
22 dubbele hoogte = string.IsNullOrEmpty ( txtHeight.Text ) ? 1 : double.Parse ( txtHeight.Text );
23
24 if ( weght == 0 ) op Twitter
25 {
26 MessageBox.Show ( " De resultaten zullen onnauwkeurig zijn gewicht is geen geldig getal . . ");
27 }
28 if ( hoogte == 0 )
29 {
30 MessageBox.Show ( " De resultaten zullen onnauwkeurig Lengte is geen geldig getal . . ");
31 }
32
33 dubbele vmult = cboWeightUnits . SelectedItem.ToString ( ) == " pounds " ? 2.204 : 1;
34 dubbele hmult = cboHeightUnits.SelectedItem.ToString ( ) == "duim " ? 0,0254 : 1;
35
36 dubbele BMI = Math.Round ( ( ( weght /vmult ) /( ( hoogte * hmult ) * ( hoogte * hmult ) ) ) * 10 ) /10;
37
38
39 snaar BMI_description = string.Empty;
40 if ( BMI <16,5 ) op Twitter
41 BMI_description = " ernstig ondergewicht ";
42 else if ( BMI> = 16.5 &&BMI <18,5 ) op Twitter
43 BMI_description = " ondergewicht ";
44 anders if ( BMI> = 18.5 &&BMI <25 ) op Twitter
45 BMI_description = "normal ";
46 else if ( BMI> = 25 &&BMI <= 30 )
47 BMI_description = " overgewicht";
48 else if ( BMI> 30 &&BMI <= 35 ) op Twitter
49 BMI_description = " zwaarlijvig ";
50 else if ( BMI> 35 &&BMI <= 40 ) op Twitter
51 BMI_description = " klinisch zwaarlijvig ";
52 anders
53 BMI_description = " morbide obesitas ";
54
55
56 txtResult.Text = String.Format ( " Your Body Mass Index ( BMI ) is : { 0 } . Dit zou worden beschouwd { 1 } " , BMI , BMI_description ); .
57 }
58 }
59 }
Zoek uw BMI
5
Neem je gewicht in kg . en deze in de gewichtsklasse doos van de C + + BMI calculator .
6
Meet uw lengte in centimeters in en voer het in de hoogte doos van de C + + BMI calculator .
7
Bepaal of uw gewichtsklasse is gezond , overgewicht of obesitas, gebaseerd op de rekenmachine uitgang .
Gezondheid en Ziekte © https://www.gezond.win