Created
August 11, 2012 22:47
-
-
Save anonymous/3327640 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace TemperatureConversion | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void button1_Click(object sender, EventArgs e) | |
{ | |
// This button will calculate conversions | |
} | |
public static double FarenheitConversions (double Farenheit) | |
{ | |
double FarenheitCelsius; | |
FarenheitCelsius = (Farenheit - 32) * (5 / 9); | |
return FarenheitCelsius; | |
double FarenheitKelvin; | |
FarenheitKelvin = (Farenheit + 459.67) * (5/9); | |
return FarenheitKelvin; | |
double FarenheitRankine; | |
FarenheitRankine = Farenheit + 459.67; | |
return FarenheitRankine; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment