cs509:cplusplusbasics
Answer and discuss the following questions:
2/6/13
2/13/13
Complete these programming projects:
1. Write a program c2f.cpp
that inputs a temperature in Celcius, converts it to Fahrenheit, and outputs the temperature in Fahrenheit.
2. Write a program c2fLoop.cpp
that uses a loop to input temperatures in Celcius, convert each input temperature to Fahrenheit, output each temperature in Fahrenheit, and then repeat until the user terminates the program. For example:
Enter Celcius temperature: 0 Fahrenheit temperature: 32 Enter Celcius temperature: 100 Fahrenheit temperature: 212 Enter Celcius temperature: 50 Fahrenheit temperature: 122 ... (continues until user terminates program)
3. Write a program box.cpp
that inputs the size of a square and then outputs a square of that size using a character such as *. For example:
Input the size of the square: 5 ***** * * * * * * *****
cs509/cplusplusbasics.txt · Last modified: 2013/02/13 18:56 by jchung