As stated in my introduction post, its been 19 years since I last wrote any basic, so please don't pick too many holes in my first hours attempt.
I intend on using the data graphing command on this first little program I have written, I am thinking that these commands are perfect for this kind of program?
In the UK back in the very early 80's there was a TV program about learning basic, and one of the first programs was to learn to write something that would calculate how long it would take some fish to die in a fish tank that had a leak. The tank had 500 gallons of water and was losing one five hundredths of it remaining volume per hour. Once the water level reached 100 gallons all the fish would be dead, (at least I think that's how it went). I have changed the rules a little to allow for different water level etc. Again no poking holes at the rusty code rem Fish Tank Leak
input "Enter the Water Level",wl
input "Enter the water leak rate",lr
input "Enter death point water level",deathpoint
if water<=(deathpoint+(deathpoint*.10)) and warn=0 then
print "Critical reached at ";count;" hours"
loop until water<=deathpoint
Print "All the fish are dead in ";count;" hours."
if count>=168 then
if count>=24 then
print weeks;" weeks ";days;" days ";count;" hours"
I am guessing that the Data Graphing commands will make it easy to add a graph for this?