
Lesson 3-2: Arithmetic Operations
54 | Chapter 3
Name __________________________________________ Date _______________________
Section _________________________________________
Use program Convert for Exercises 1 through 5. Study this program carefully. It converts a
temperature from Fahrenheit to Celsius and a temperature from Celsius to Fahrenheit.
// Program Convert converts a temperature from Fahrenheit to
// Celsius and a temperature from Celsius to Fahrenheit.
#include <iostream>
using namespace std;
const int TEMP_IN_F = 32;
const int TEMP_IN_C = 0;
int main ()
{
int fToC; // Place to store Celsius answer
int cToF; // Place to store Fahrenheit answer ...