Sorry, im not sure if this is a calculus problem. I think it is because i need to find out how long it takes to fill a cup of water - it's for my comp. sci. class. If someone could point me in the right direction on how to solve this it would be greatly appreciated, as i dont know what i should do first. Thanks.

A glass has the shape of a truncated cone of height 5 inches. Its top diameter is 3.5 inches and its base diameter is 2 inches. If water is poured into the glass at 2 gallons per minute, write a Matlab script to calculate how long it takes to fill the glass to the brim. One gallon is 7.5 cubic feet.