For programming assignments, you may consult with others (instructors, other students, etc.). You may look at and discuss algorithms or programs that are under development provided that you do not make a copy of any code in any way (no file copying, no xerox copies, no copying by hand, etc.), nor may you allow another student to make a copy of your code. You may also use any references (books, web, etc.) provided that include a comment that cites any resources used (not needed for our textbook)
As a student, you are responsible for knowing and adhering to this policy. Violations will be reported to the CU Honor Code Council and result in an F for the entire course.
Write a short program called temperature.cxx to calculate temperature conversions as described below.
Input. The program asks the user for these pieces of information:
Output. The program then prints messages with this information:
Brrrrrr
Pant, pant, pant
- Otherwise:
You are a fugitive from the law of averages.
Sample Input:
32.0F
Sample Output:
32.00F 0.00C 273.15K You are a fugitive from the law of averages.
Documentation.
// The program must have a comment at the top that lists the // name of the source file, the name and e-mail address of the // student, the current date, and a short description of the // purpose of the program.
Each variable declaration must include a comment indicating the
purpose of the variable. All these declarations must be at the
top of the main function (right after
int main( )
).
The program must return EXIT_SUCCESS to the operating system.
Check that the program compiles and runs correctly. Submit the program to culearn.colorado.edu