A program that monitors the amount of fuel in a tank and gives a warning if the supply falls below 10% of the tank's capacity.
|
Enter the the initial supply: 2000 Enter the amount delivered(+)/removed(-): -900 Enter the amount delivered(+)/removed(-): 1100 Enter the amount delivered(+)/removed(-): -1400 Enter the amount delivered(+)/removed(-): -200 Enter the amount delivered(+)/removed(-): -250 Supply below 10% (350.00 l remaining) |
No comments:
Post a Comment