1. Engineering
  2. Computer Science
  3. code in c language...

Question: code in c language...

Question details

Code in C language:

Given the following table which contains the information of some battleships in World War II, create a structure to store the information, and do the following tasks (each one with a function) a) ask the user to input the information into an array of structure. b) display the ships as the original order; c) calculate the average values for numGuns and displacement, and display the result. TYPECOUNTRY NUMGUNS |BOREDISPLACEMENT NAME Bismarck owa Kongo North Carolina bb Germany USA 15 16 14 16 15 15 14 18 42000 46000 32000 37000 32000 29000 32000 65000 bc Japan Revenge Tennessee Yamato USA Gt. Britairn Gt. Britain 8 USA Japan 12

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution