• Ask an Expert
• Get a Professional Answer
• 100% Satisfaction Guarantee
NeOh, Computer Software Engineer
Category: Programming
Satisfied Customers: 951
Experience:  Currently working in web applications.Good Experience in C,VB,ASP,Javascript
15563787
Type Your Programming Question Here...
NeOh is online now

# Write a program that converts degrees from Fahrenheit to Celsius,

### Customer Question

Write a program that converts degrees from Fahrenheit to Celsius, using the formula.
Submitted: 8 years ago.
Category: Programming
Expert:  helpdesk replied 8 years ago.
Hi . Thank you for asking your question on JustAnswer. The other Experts and I are working on your answer. By the way, it would help us to know:
-Do you need the code in any programming language or you just need the pseudocode.

Thank you again for trusting us with your problem. Please reply as soon as possible so that we can finish answering your question.
Customer: replied 8 years ago.

the forumla is DegreesC = 5(DegreesF - 32) /9

In Java.

Thanks

Expert:  helpdesk replied 8 years ago.
Hi,
This is the code
/*
This program converts Fahrenheit to Celsius.

Call this program FtoC.cs.
*/

using System;

public class FtoC {
public static void Main() {
double f; // holds the temperature in Fahrenheit
double c; // holds the temparture in Celsius

f = 59.0; // start with 59 degrees Fahrenheit

c = 5.0 / 9.0 * (f - 32.0); // convert to Celsius

Console.Write(f + " degrees Fahrenheit is ");
Console.WriteLine(c + " degrees Celsius.");
}
}
**********************************************************************************
Hope your problem is solved.Please give a positive feedback after pressing the accept button.Bonus is appreciated.
Expert:  NeOh replied 8 years ago.
Hi,

This is the program that converts degrees from Fahrenheit to Celsius, using the formula in the JAVA language

public class DegreeConverter{
public DegreeConverter(){}

public static float fahrenheitToCelsius(float df){
float degCelcius;
degCelcius = (df - 32) * 9/12;
return degCelcius;
}

public static void main(String[] args){
System.out.print("50 degrees in Celcius is: ");
System.out.println(fahrenheitToCelsius(50));

}
}

Thanks

Shidhin