Question: How to make a problem that will give an out put like this? That temperature is below absolute zero, and therefore is invalid. You need

How to make a problem that will give an out put like this?

"That temperature is below absolute zero, and therefore is invalid.

You need to enter a temperature that is greater than or equal to absolute zero.

Please enter a temperature:

11.0

Please enter your temperature scale:

Please enter Fahrenheit, Celsius, Kelvin, Rankine, Delisle, Newton, Roaumur, or Romer

pj

Please enter Fahrenheit, Celsius, Kelvin, Rankine, Delisle, Newton, Roaumur, or Romer

Fahrenheit

Please enter your target temperature scale:

Please enter Fahrenheit, Celsius, Kelvin, Rankine, Delisle, Newton, Roaumur, or Romer

ggg

Please enter Fahrenheit, Celsius, Kelvin, Rankine, Delisle, Newton, Roaumur, or Romer

Celsius

You entered 11.0 degrees Fahrenheit, which is equal to -11.67 degrees Celsius.

Would you like to enter another temperature?

Please enter Yes or No.

ccc

Please enter Yes or No.

Yes

Please enter a temperature:

33.0

Please enter your temperature scale:

Please enter Fahrenheit, Celsius, Kelvin, Rankine, Delisle, Newton, Roaumur, or Romer

Celsius

Please enter your target temperature scale:

Please enter Fahrenheit, Celsius, Kelvin, Rankine, Delisle, Newton, Roaumur, or Romer

Fahrenheit

You entered 12.0 degrees Celsius, which is equal to 53.6 degrees Fahrenheit.

Would you like to enter another temperature?

Please enter Yes or No.

No

Good-Bye!!

I know how to do a temperature conversion but i don't know how to make it keep repeat the question if the user enter error input or allow the user to keep enter as long as they want.

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 Programming Questions!