Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

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: 1518 days and 4 hours ago.
Category: Programming
Value: $20
Status: CLOSED
Picture
Expert:  helpdesk replied 1518 days and 3 hours 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 1518 days and 3 hours ago.

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

 

In Java.

 

Thanks

Picture
Expert:  helpdesk replied 1518 days and 3 hours 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.

Picture
Expert:  NeOh replied 1518 days and 1 hours 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

 
Tweet

5 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
is there a python programming person available 3/28/2013
Write a menu-driven program that allows users do two options: Option 3/27/2013
1. Which one of the following control structures provides for 3/27/2013
JavaScript: Multiple Choice Questionnaire 3/25/2013
RA-211 3/24/2013
How do you create a searchable public Google drive folder in 3/24/2013
RA-211 3/24/2013
I am an entrepreneur with no current coding skills, but an 3/23/2013
I have base code in VBA that opens all excel files from a folder 3/23/2013
Program in C++ 3/23/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
189 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC