Question: c++ Programming Exercise 6.4 Temperature Conversion, v.2.0 Purpose. Practice writing programs that use event-controlled loops. Modify Exercise 5.4's Canada1.cpp, replacing console inputs with text file

 c++ Programming Exercise 6.4 Temperature Conversion, v.2.0 Purpose. Practice writing programsc++

Programming Exercise 6.4 Temperature Conversion, v.2.0 Purpose. Practice writing programs that use event-controlled loops. Modify Exercise 5.4's Canada1.cpp, replacing console inputs with text file inputs. Name the new program Canada2.cpp Requirements. Same as 5.4's Temperature Conversion, with these changes: 1. Use a loop to rerun the program until the user enters a sentinel value. 2. Use -999 as sentinel value - once you read that value from the console, break from the loop. Program IO. Input: number from the console keyboard. Output: Echo the input value and output the result of the calculation to the console screen, once per each non-sentinel input value. Example. For example, with user input in blue: What's the temperature in Celsius? 100 100. Celsius equals 212.0 Fahrenheit What's the temperature in Celsius? 0 0. Celsius equals 32.0 Fahrenheit What's the temperature in Celsius? -40 -40. Celsius equals -40.0 Fahrenheit What's the temperature in Celsius? 100.001 100.001 Celsius equals 212.0 Fahrenheit What's the temperature in Celsius? -999

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