A line to randomly select a number between -10 and 120 for the Fahrenheit temperature
A line to convert the Fahrenheit temperature to Celsius
1
Expert's answer
2016-03-09T08:36:42-0500
import java.util.Random;
public class FahrenheitCelsius { public static void main(String[] args) { Random random = new Random(); int deegr = random.nextInt(130) - 10; // random number between -10 and 120 for the Fahrenheit temperature double celsiusDeegr = (double) (deegr - 32) * 5 / 9; // convert the Fahrenheit temperature to Celsius
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment