Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedc++
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago