Question: Using C Programming please Thank you! 3. Given the following table which contains the information of some battleships in World War II, create a structure
3. 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. TYPE COUNTRY NUMGUNS BORE DISPLACEMENT bb Germany 8 bb USA NAME Bismarck Iowa Kongo 15 16 42000 46000 32000 37000 32000 15 29000 32000 18 65000 North Carolina bb USA 16 15 bc Gt. Britain 6 Renown Revenge Tennessee Yamato Gt. Britain 8 12 bb USA bb Japan
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
