Question: 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

Code in C language:

 Code in C language: Given the following table which contains the

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!