Aquarium Convert Program
I am a Mechanical Engineering major and this semester I am taking a programming class. I been working on a program to calculate the volume after the user enters the length, width, and height. So, I'm sure you all are saying that you could just multiply L, W, and H together divide by 231 and get the volume yourself. However, I also added a couple other features. The user is also prompted to enter the thickness of the glass. The program then calculate the volume of the glass and subtracts it from the total volume. Since the aquarium substrate takes up volume, I added a place where the user can enter the depth of the substrate. The program then subtracts this from the volume. Then since the water in most tanks is not level with the top of the tank, I added a feature for the user to enter the height of the water below the top of the aquarium. Then the program subtracts this from the volume. After this, the program displays the volume, the volume minus the glass volume, the volume minus the glass and substrate volume, and then the volume minus the glass, substrate, and water level from the top volume.
Some of you might be wondering my motivation behind writing this simple program. My reasoning all has to do with dosing aquariums with live plants. I have a 75 gallon planted and when I add ferts, I use to add the amount for 75 gallons of water. However, one day, I stopped and thought about it and came to this realization. Technically, I should not be adding this much because the substrate takes up quite a bit of volume. If I neglect this and dose for 75 gallons, I will be overdosing, which could lead to unwanted results, like an algea outbreak. So, I wrote this program to calcuate a more accurate volume.
I might add a part to the program that would calculate a percent of the total volume for a user. For an example, let's say a user wants to do a 20% water change. The user would enter that as 20 and the computer would calculate how much water the user should change.
So far, this is all I have thought of to add. I am sure I will think of more things to add sitting in class in the weeks to come. If anyone has and thoughts on it, feel free to comment.