Cook graduated from the naval academy in the class of 1847. He resigned (as passed midshipman) from the US navy 12-9-1851.