In this exercise, you will modify the program from TRY THIS Exercise 11. If necessary, create a

Question:

In this exercise, you will modify the program from TRY THIS Exercise 11. If necessary, create a new project named ModifyThis12 Project, and save it in the Cpp8\Chap10 folder. Copy the instructions from the TryThis11.cpp file into a source file named ModifyThis12.cpp. (Alternatively, you can enter the instructions shown later in Figure 10-32 into the ModifyThis12.cpp file.) Change the filename in the first comment to ModifyThis12.cpp. Add a void function named calcFahrenheit to the program. The program should now allow the user to convert the temperature he or she entered to either Celsius or Fahrenheit. Make the necessary modifications to the main function. Test the program appropriately.

//TryThis11.cpp converts Fahrenheit to Celsius //Created/revi sed by  on  #include  #include  using names pace std; //function prototype void calcCelsi us (double tempF, double &tempC); int main() { double fahrenheit = 0.0%3; double celsius = 0.0; cout « fahrenheit; calcCelsius(fahrenheit, celsius);" style="" class="fr-fic fr-dib">

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: