Hello, I'm writing a program for a class and I'm stuck.
This is the problem
Write an application that will accept the following inputs: low temperature, high temperature, and type of temperature values that have been entered where F is for Fahrenheit and C is for Celsius. Be sure to use appropriate prompts and instructions for all inputs required. An output table will be created starting at the low temperature and ending with the high temperature with increments of one degree in the first column. In the second column the corresponding equivalent temperature of the other type will be listed. Be sure that the low temperature is indeed lower than the high temperature. Also the user must enter F or C in either upper or lower case and should be continuously queried until a valid value has been entered.
Here is my code so far for it.
print "Please answer the following questions."
F = Fahrenheit
C = Celsius
Please enter a F for fahrenheit or a C for Celsius: ")
Please enter a low Temperature: "))
Please enter a high Temperature: "))
if (low_temp > high_temp):
print "Sorry, please enter new temperature."
# Figure out if temperature is Fahrenheit or Celsius
C == ((5/9 * temp) 32))
F == ((4/5 * temp) + 32))
Please hit the enter key to exit.")
Can anyone help point me in the right direction?