Write a program (lab3.cpp) that finds the temperature that is the same in both Celsius and Fahrenheit. The formula to convert from Celsius to Fahrenheit is: ??ℎ???ℎ??? = (9 ∗ ???????/5)+32 Your...


Write a program (lab3.cpp) that finds the temperature that is the same in both Celsius and
Fahrenheit. The formula to convert from Celsius to Fahrenheit is:
??ℎ???ℎ??? = (9 ∗ ???????/5)+32


Your program should create two integer variables for the temperature in Celsius and Fahrenheit. Initialize the temperature to 100 degree Celsius. In a loop, decrement the Celsius
value and compute the corresponding temperature in Fahrenheit until the two values are the same. An example run of this program is attached as a photo






1. What is the condition that will end the loop?
2. Should you check that condition at the beginning or end of the loop?
3. What kind of loop is best for that kind of condition checking?


[mingli@polaris:-/TA]S ./lab3_LOOP<br>Set the initial value of Celsius: 100<br>When Celsius = -40, these two are same.<br>[mingli@polaris:~/TA]$<br>

Extracted text: [mingli@polaris:-/TA]S ./lab3_LOOP Set the initial value of Celsius: 100 When Celsius = -40, these two are same. [mingli@polaris:~/TA]$

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here