/* Calculate an alarm value given the alarm temperature.  */
int compute_alarm(float alarmTemp)
/* Calculate an alarm value given the alarm temperature.  */
int compute_alarm(float alarmTemp)
{
    float a = (alarmTemp - s_tempmon.hotTemp);
    float b = (s_tempmon.hotTemp - ROOM_TEMP);
    float c = (s_tempmon.roomCount - s_tempmon.hotCount);
    float d = (b / c);
    return s_tempmon.hotCount + a / d;
}