Question: Hello I need some help please, this is the code I currently have but I am not getting any output close to what is required

Hello I need some help please, this is the code I currentlyHello I need some help please, this is the code I currently have but I am not getting any output close to what is required for the following question. This is using Java and Eclipse: Write a program that prompts the user to enter a temperature in degrees Fahrenheit. Convert the temperature to degrees Celsius. Then prompt the user to enter a temperature in Celsius. Convert the temperature to degrees Fahrenheit. The formulas needed are C = (F 32) * 5/9 and F = 9/5*C + 32. An example output is this: Enter a Fahrenheit temperature: 100. 100F is equivalent to 37.777C. Enter a Celsius temperature: 100. 100C is equivalent to 212F.

. public class pt2 { public static void main(String[] args) { float degrees; System.out.printf("Enter temperauture in degrees fahrenheit: "); System.out.printf("Temperature in degrees Celsius = ", ((degrees - 32.0) 5.0 / 9.0)); System.out.printf("Enter temperature in Celsius: "); System.out.printf("Temperature in fahrenheit is %f", ((degrees)*9.0/5.0 +32.0)); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!