Question: Write a java program that conducts the following: 1. Obtain the temperature value (in Fahrenheit) from the user. 2. Ensure that the temperature value is
Write a java program that conducts the following: 1. Obtain the temperature value (in Fahrenheit) from the user. 2. Ensure that the temperature value is not less than 20 or above 110 (Input Validation). We are in Huntsville, Texas!!! a. hint: use a do-while loop to keep asking if the input is invalid b. hint: the OR (||) operator can be useful 3. Output a table of the Fahrenheit temperatures above 20 through the value that is obtained from the user and its Celsius equivalents. The output table will look like this (assuming the entered temperature value in Fahrenheit is 50 degree)
- Fahrenheit Celsius ==================== 20 -6.67 30 -1.11 40 4.44
50 10.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
