Question
1. Create a new class named Temperature.java. This class will have a main() method that will: a. Prompt the user for and accept user input
1. Create a new class named Temperature.java. This class will have a main() method that will:
a. Prompt the user for and accept user input a temperature in the Fahrenheit temperature scale.
b. User a decision structure of your choice to ensure input is validated.
i. Only accept numeric data in the form of a real number
ii. The acceptable range is -128.6 F and 134.1 F inclusive.
iii. If user input is not valid, display an appropriate error message and re-prompt the user for valid data.
iv. Hint: use a loop. No processing should occur if data is invalid.
c. Once input has been validated, pass the value to a function you need to create named TemperatureConversion() that will accept a double or float data type (your choice). This function will calculate the temperature conversion and return the calculated value.
d. Display the output that includes the original user input and the converted Celsius value.
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