Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions