A senior Navy official is warning that rising costs in key programs such as Lockheed Martin and General Dynamics' next-generation…