Return To CS 110 Home

Colour Theme   Font Size Options
 
   
   
   
Exercise 2

If-Else Statement Exercise: Temperature Conversion

Use ex2_convert.cpp in the replit team project or copy the following code into your IDE:


This program demonstrates how to use if-else statement.

Test the program with these inputs:

C 100
F 32
c 0
f 0
d 0

Explain to yourself

Fix the problems

You should use two if-else structures to fix the program:

When you are done: