Question
F = (9 / 5) * C + 32 Create a class called TempConverter Write the main() method within the class Declare a constant called
F = (9 / 5) * C + 32 Create a class called TempConverter Write the main() method within the class Declare a constant called BASE with the value 32. The data type must be int. Declare a constant called CONVERSION_FACTOR having the value 9.0 / 5.0. The data type must be double. Declare two variables fahrenheitTemp and celsiusTemp. The data type must be double. Accept the Celsius temperature from the user and assign it to celsiusTemp (Remember: To accept input you have to import the java.util package and create the Scanner class object) Calculate the Fahrenheit equivalent using the formula given above and store the result in fahrenheitTemp Display the Celsius temperature and its Fahrenheit equivalent I forgot to add the equation.
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