CSE 1341: CS I (Fall, 1999)

Prof. Jeff Tian (tian@seas.smu.edu)
Dept. of Computer Science and Engineering
Southern Methodist University
Dallas, TX 75275

Homework Assignment #4

Due Date: Wednesday, 9/22/99, before midnight.

Programming Assignment

Design and implement a program to simulate the operation of a climate control system (CCS), which satisfies the following operating rules: In your simulator (the simulation program), a temperature measurement can be replaced by a user input, and the actions of turning heater/AC on can be replaced by just printing the appropriate message. As for the choice of continuing operation and shutting off CCS, you may use a number code (for example, 0 for one choice and 1 for the other).

Standard Test Values

After testing/debugging with your own input values, make sure that your program works with the following temperature readings: Assuming that the target temperature is 70 degrees (F), and tolerance is 1 degree.

What to Turn in

You need to e-mail both your program, and a trace of its execution (remember "script") to your TA by the due date.
Prepared by Jeff Tian (tian@seas.smu.edu). Last update Sept. 9, 1999.

Back to CSE 1341 webpage