Question: Here's main.cpp. I'll take as much as you can do, I just need help please: int main() { cout > option; /*======= Load data from





Here's main.cpp. I'll take as much as you can do, I just need help please:
int main() { cout > option;
/*======= Load data from file(s) =======*/ /*======= Print out how many sets were loaded =======*/ /* Imagine your program had a menu like this: cout > choice; cin.get(); // Clear newline character for any later input /*======= Based on the choice, execute the appropriate task and show the results =======*/ return 0; }
Description First things first, the files: There are 3 main files that you will be loading in this assignment: . lego1.csv lego2.csv lego3.csv In addition, there are 3 sample files included with this document. Use those to test your loading process. The 3 larger files (on zyBooks, without "SAMPLE_" in the filename) are in the exact same format, the sample files have just been reduced to a handful of entries, so you could easily test as you go. The data that you will be loading is information about a LEGO set: 1. Its set number The theme it comes from (City, Technic, Star Wars, etc.) 3. 2. The name of the set How many parts and mini-figures it contains (if any) Its price in US dollars 4. 5. Your goal is to read this from 1 of those 3 files (or all of them at once), store it, and then search it based on a few different criteria Main.cpp is only required for this assignment, but you are free to write any class/functions that you see fit to assist you solve this problem. Main.cpp has some structure to it already to help you get started. Take some time to think about how you might go about this before diving in. Description First things first, the files: There are 3 main files that you will be loading in this assignment: . lego1.csv lego2.csv lego3.csv In addition, there are 3 sample files included with this document. Use those to test your loading process. The 3 larger files (on zyBooks, without "SAMPLE_" in the filename) are in the exact same format, the sample files have just been reduced to a handful of entries, so you could easily test as you go. The data that you will be loading is information about a LEGO set: 1. Its set number The theme it comes from (City, Technic, Star Wars, etc.) 3. 2. The name of the set How many parts and mini-figures it contains (if any) Its price in US dollars 4. 5. Your goal is to read this from 1 of those 3 files (or all of them at once), store it, and then search it based on a few different criteria Main.cpp is only required for this assignment, but you are free to write any class/functions that you see fit to assist you solve this problem. Main.cpp has some structure to it already to help you get started. Take some time to think about how you might go about this before diving in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
