asked to write a program that converts from Celsius to Fahrenheit and Fahrenheit to Celsius, what type of variables would use to store the temperatures and why?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
Please help using Java
asked to write a program that converts from Celsius to
Fahrenheit and Fahrenheit to Celsius, what type of
variables would use to store the temperatures and why?
4. Give an example of a declaration statement and an example
of an assignment statement that you will use in this
program.
5. In this program, the user will input a temperature using one
scale and convert to the other. Should the storage location
used to store the temperatures, be a variable or a constant?
Why?
6. In the conversion from Celsius to Fahrenheit, identify each
of the following:
Transcribed Image Text:asked to write a program that converts from Celsius to Fahrenheit and Fahrenheit to Celsius, what type of variables would use to store the temperatures and why? 4. Give an example of a declaration statement and an example of an assignment statement that you will use in this program. 5. In this program, the user will input a temperature using one scale and convert to the other. Should the storage location used to store the temperatures, be a variable or a constant? Why? 6. In the conversion from Celsius to Fahrenheit, identify each of the following:
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT