Write Program Gets Weather Temperature Centigrade Converts Fahrenheit Temperature Less 70 Q37080212

Write a program that gets the weather temperature in Centigrade,converts it to Fahrenheit and if the temperature is less than 70prints It is a bit cold, isn’t it?, and if the temperature isgreater than 70 prints What a nice warm weather! Your answer:


Solution


import java.util.Scanner;public class TemperatureStatus { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print(“Enter temperature in Centigrade: “); double c = in.nextDouble();

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.