Just wanted to say thanks to everyone that helped me out on this one. I finally got it. Thanks so much!!!
Just wanted to say thanks to everyone that helped me out on this one. I finally got it. Thanks so much!!!
Okay, question.
What if I inputted this:
Enter a temperature: 32
Enter 'C' for Celsius or 'F' for Fahrenheit: c
Choose a conversion ('C' for Celsius or 'F' for Fahrenheit): c
The temperature is: 0.0 C.
I want the program to read The temperature is: 32 C. when I go from C to C but my program is outputting 0.0 C. Same thing when I go from F to F.
if you input the temperature as C and you display it as C why would you want it to display something different?
Oh, it was instructed to do so by the instructor. But after fiddling around with it, I finally got it. Thanks again!
Could someone please explain to me how to post a new message to the boards
If you've entered the temperature and then chosen it to be C, then what is the need to specify that it has to be converted into F. that is pretty obvious, right?
The output could be in this way:
Enter a temperature: 32.4
Enter 'C' for Celsius or 'F' for Fahrenheit: C
The converted temperature is: 90.3 F.