Question: i am working with C++. I need help with this program. I dont understand how arrays and structs work. Program 2: Remember to use at


i am working with C++. I need help with this program. I dont understand how arrays and structs work.
Program 2: Remember to use at least three MEANINGFUL functions; label all output; put name, CN, and lecture section in appropriate places. You must implement an array of struts to for solving this problem. Most of the output for Program 2 is to the screen; only part f is to an output file. You have been hired to write a program to process information about a toy collection. The collection contains G.I. Joes', which are toy action figures, and a text file contains data about the collection of these toys. Each line contains information about one toy: the cost year of purchase condition . Name of the toy action figure. The cost is a floating point value. Data items are separated by blanks. Your solution should process files of any size. a) Declare an array with 75 components. Input the data into the array. Assume the file has at most 75 components. You may use dynamic variables if you choose. b) Print out a labeled listing of the data in four columns and include a counter showing the total number of items in the collection
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
