Date: Wed, 9 Jun 2004 22:08:48 -0500

From: Gregory Nowak

To: speakup@braille.uwo.ca

Subject: heat index program attached

It looks like my previous message didn't make it to the list, so I'm resending.

If anyone is interested, I'm attaching my heat index calculator program. It accepts temperature and relative humidity on the command-line, and will prompt if one or both are not given. If you would rather have the program display an exact unrounded result, uncomment the appropriate line towards the bottom of the main function, and comment out the line above it.

To compile it, run:

g++ -o hi hi.cpp

Have fun.

Greg

Date: Fri, 11 Jun 2004 12:39:48 -0500

From: Gregory Nowak >

To: Chuck Hallenbeck

Subject: Re: heat index program

Hi Chuck.

Having tested the program with reasonable values, I feel comfortable with the results this algorithm produces.

Some of my web research suggests that the heat index formula was designed to work with temperatures above 70 DG. F. However, since I could find nothing detailed on the subject, or about the humidity range this formula is designed to work with, I didn't mention these facts in my little documentation, or in the program, because I didn't have enough info to state the facts with confidence in their accuracy.

As for restricting the range of the input values the program accepts, again, I don't have enough info on what reasonable ranges are. Also, I kind of like playing with unreasonable values, in the interest of seeing what it comes up with, and restricting the range of the input values, even if I knew what the range was, would have taken away the ability to "play" with the program so to speak.

Again, being comfortable with the results produced by the program given reasonable input (such as 80 DG F. and humidity at 50%), I decided to leave the code as was, and assumed that others who would input unreasonable values would not take the resulting output seriously, as I have done.

Greg

Heat index formula taken from http://www.usatoday.com/weather/whicalc.htm

The hi.zip file contains:

hi.cpp, the source code

hi.exe, ms-windows binary

hi.html, documentation in html

hi.txt, documentation in plain text.

I release this program into the public domain.

download zip archive (121K).

Go back to programs index page.