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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!