Logbook. Element 1 Lab: Statements and Methods Part C-

Added on - 20 Sep 2019

  • 48

    pages

  • 4172

    words

  • 143

    views

  • 0

    downloads

Showing pages 1 to 8 of 48 pages
LogbookElement 1Lab: Statements and MethodsPart C- Play with MethodsInputTemperature30FromFahrenheitCelsius = -1.11
InputTemperaturFromCelsiustoFahrenheit =86
From[ft] toMeter[m]12.9InputyourValue40
InputyourValue50FromMeter[m] toFoot] [ft]164.05
InputyourValue50FromPounds[Lbs] toKilograms [kg]226.8
InputyourValue100FromKilograms[kg] toPounds[Lbs]220.46
InputyourValue1000FromKg toTones1
CodingForm1.cspublicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidgroupBox1_Enter(objectsender,EventArgse){}privatevoidradioButton1_CheckedChanged(objectsender,EventArgse){}privatevoidtextBox1_TextChanged(objectsender,EventArgse){}privatevoidbutton1_Click(objectsender,EventArgse){doublenumber;number =double.Parse(textBox1.Text);if(radioButton1.Checked ==true){number = (number - 32) * 5 / 9;}elseif(radioButton2.Checked ==true){number = (number * 9) / 5 + 32;}elseif(radioButton3.Checked ==true){number = number / 3.2808;}elseif(radioButton4.Checked ==true){number = number * 3.2808;}elseif(radioButton5.Checked ==true){number = number / 2.2046;}elseif(radioButton6.Checked ==true){number = number * 2.2046;}elseif(radioButton7.Checked ==true){number = number / 1000;
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Download This Document