Hi I am new to .net and want to write a code to convert Celsius to Fahrenheit conversion and vise versa
On form I have two text box and one calculate button
Conditions are:
When user enter temp in F in one textbox and click button then temp in C should appear in second text box and vise versa
f = (9 / 5) * c + 32
c = (5 / 9) * (f - 32)
Thank you
Sounds like homework to me. J
_____
Peter
Smith
And to me. You gotta give these guys full marks for cheek. Too idle even
to google! Putting:
"celsius to fahrenheit converter c#"
into Google, comes back with 15,600 results, the first of which is:
_*Celsius to Fahrenheit converter* - MSDN Forums
<http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1490298&SiteID=1>_
*Celsius to Fahrenheit converter* Answered Question This post has a code
sample within *...* Visual Studio C++ Express Orcas, -» Visual Studio
*C#* Express Orcas *...
*The fourth one is:
*Convert Fahrenheit* and *Celsius* at *C#* Online.NET
(CSharp-Online.NET)
<http://en.csharp-online.net/Convert_Fahrenheit_and_Celsius>
*Convert Fahrenheit* and *Celsius* *...* This *C#* code snippet converts
temperatures between the two major temperature scales—*Fahrenheit* and
*Celsius*. *...*
How hard is that? Even if you haven't read: "The C Programming Language"
and can't translate from C to C#.
I hope he either pulls his socks up and does some work, or fails.
Peter
I seem to remember this being an example of a web service, somewhere.
If I had a public server to toss it onto, I'd do that, and give him code
to call the service for the conversion. :)