Question
Q3) Write a program that converts the weather from Celsius to Fahrenheit in a specific day. The program should execute the following: a. Read the
Q3) Write a program that converts the weather from Celsius to Fahrenheit in a specific day. The program should execute the following:
a. Read the day as a string input and the weather in Celsius as integer input.
b. Convert the weather degree from Celsius to Fahrenheit, using following equation: Fahrenheit = 9/5.0 * Celsius + Constant, where Constant is always 32, the weather in Fahrenheit should be decimal number.
c. The program should implement a casting operation d. The program should implement a constant variable
e. The program should run as following: (Note the use of tab character in the last message)
language JAVA
debug: Enter the day: Monday Enter the weather in celsius: 43 The weather in Fahrenheit= 109.4, day is Monday BUILD SUCCESSFUL (total time: 7 seconds)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started