Question: Use variables to name, store, and retrieve values Use System.out.print to prompt the user for input import Scanner from the Java standard library Use a

Use variables to name, store, and retrieve values
Use System.out.print to prompt the user for input
import Scanner from the Java standard library
Use a Scanner to collect user input
Use math operators to construct expression
Output to console with System.out.printf
Use format specifiers to format floating point values
Use escape sequences to include special characters in a String
Problem Description and Given Info
Write a program that will collect, as input from the user, a temperature in Fahrenheit; and then compute and display the equivalent temperature in Kelvin. The Fahrenheit temperature will be inputted as a double. The temperature in Kelvin will be computed and outputted as a double.
Here are some examples of what the user should see when the program runs.
Example 1
Enter temperature in Fahrenheit : 100100.00 degrees Fahrenheit is 310.93 degrees Kelvin
Example 2
Enter temperature in Fahrenheit : -20.25-20.25 degrees Fahrenheit is 244.12 degrees Kelvin

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 Programming Questions!