Can you please give me some tips to get started on this program. I have attached
ID: 3641644 • Letter: C
Question
Can you please give me some tips to get started on this program. I have attached a link to the program. I am not necessarily asking for the whole code a just general idea of what kind of arrays I need to declare and prototypes etc.
Here are the directions:
http://postimage.org/image/dczf43gdz/
Explanation / Answer
a string array for ship name and integer arrays for the other categories. to pass the data to the right index of the array set a counter that increments every time you go through your while loop int counter = 0; string ship_names[30]; int capacity[30]; int weight[30] int speed[30]; string name; int data; while (!eof) { in >> name; ship_names[counter] = name; in >> data; capacity[counter] = data; in >> data; weight[counter] = data; in >> data; speed[counter] = data; counter++; } that should read your data into the correct arrays and the index for each array will correspond to data for each ship. the prototypes you need are already spelled out in the directions. if you have questions about how to implement a specific function feel free to ask.