• 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
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.

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

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