Computer Science, asked by sruthisiva, 1 year ago

Create a method in java which accepts temperature in Celsius and return its Fahrenheit equivalent. Create another method which accepts temperature in Fahrenheit and return its Celsius equivalent. Also create a method to invoke the above methods. Pls answer fast. First answer will be marked as the brainliest one

Answers

Answered by Anonymous
1
this Java tutorial, you will learn how to write a program to convert Fahrenheit to Celsius in Java. Fahrenheit is a thermodynamic temperature scale, where the freezing point of water is 32 degrees Fahrenheit (°F) and the boiling point of water is 212°F (at standard atmospheric pressure). This puts the boiling and freezing points of water exactly 180 degrees apart. Therefore, a degree on the Fahrenheit scale is 1/180 of the interval between the freezing point and the boiling point of water. Absolute zero is defined as -459.67°F. If you know, in Celsius scale, the freezing point of water is at 0ºC and the boiling point of water is at 100ºC. By using these facts, you can easily deduce a formula to convert Fahrenheit temperature into Celsius.

To be frank, if you have been a Science student you already know about that formula, nothing new about it. What is more important is to learn how to convert such formula into a computer program using Java programming language.

This is what you will learn in this tutorial. BTW, if you an absolute Java beginner and learning Java, I suggest you take a look at a couple of introductory books about Java programming language e.g. Java: A Beginner's guide by Herbert Schildt, it's one of the up-to-date books in Java and covers even latest Java release, Java 8.

sruthisiva: can you pls give it in the form of a program?
sruthisiva: i will mark it as thr brainliest then
sruthisiva: tank u
Answered by ashokbabupurnea
3
c=obj.convert( );
f=1.8*c+32.0

ashokbabupurnea: wlcm
Similar questions