Question: 4. a) a a Fig. 4-B below describes main() program that invokes function readAndStore FurnitureRecords ( to : read in furniture data stored in a




4. a) a a Fig. 4-B below describes main() program that invokes function readAndStore FurnitureRecords ( to : read in furniture data stored in a file with the filename that was passed in as argument extract the relevent pieces of information like name, material, weight, etc of each furniture stored in the file (Hint: make use of the function splitString() in Qn 2) initialize a FurnitureType struct variable with the furniture's name, height, weight, selfAssembled data (Hint function convertFrStringToPrimitiveType() in Qn 3 can also be used to help you!) store the FurnitureType variable info into a vector return a vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
