I need help with this damn program. Its suppose to be like a water bill for commercial and home use. Home is 5.00+.0005 per gal and the commercial is 1000.00 (for 4 million gallons) and .00025 for every gallon after. The program prompts the user to enter a "C" or "H" for type of water bill, then how many gallons used, and it calculates and tell you how much the bill will be. If any other character is entered, it is suppose to return an error.
no matter what letter i enter, after i enter the gallons, it returns an error. Im getting owned by my own program. Someone help please.
the files are on my site, listed below.
http://www.bradh.net/jacob/prog