Answer
If the price of a navy submarine rises then the consumer price index is unaffected. Navy submarines are not part of consumer purchases and only affect the government spending portion of GDP.
Work Step by Step
Think about what type of product it is. This is for military use so it would be considered government defense spending and therefore does not impact GDP.