The correct capitalization is used in the second sentence: Did you know that a Swedish engineer designed the Monitor, an ironclad ship in the Civil War.
Swedish, Monitor and Civil War are all proper nouns and therefore need to be capitalized.
Engineer here is listed as a profession and therefore does not need to be capitalized.