I am writing a program using Eclipse for a class project. I am getting a strange output for my declared variable "fillGallons" at the end of the code. This part of the project is supposed to be calculating how many gallons of water the pool gains per hour given the fill rate of the user's hose (user entered). However, the output is always "1.61461e-316 gallons" no matter the number the user enters. When I do the math on my calculator, I don't get anything even close to this. I don't know what I'm doing wrong. I feel like it's something simple that I'm overlooking. Any help is appreciated.
The problem lies on line 18 with fillVolume. The problem is you are multiplying poolLength and poolWidth to fill_rate which is unitiliazed which means it has a garbage value which would explain why it's giving a mumbo jumbo number.
Move fillVolume and fillGallons after you take in fill_rate then you should have a "normal" number.