Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C + + Question Complete please full code assignment Overview For this assignment, you are going to load a series of files containing data and
C Question
Complete please full code assignment
Overview
For this assignment, you are going to load a series of files containing data and search the loaded data for specific criteria.
That might sound a bit dry, but the files contain information about LEGO sets, and everyone loves LEGO! The structure of
this assignment is a bit openended; you can solve this problem in any way that you see fit.
Description
First things first, the files: There are main data files that you will be loading in this assignment:
legocsv
legocsv
legocsv
The data that you will be loading is information about a LEGO set:
Its set number really a string, something like:
The theme it comes from City Technic, Star Wars, etc.
The name of the set
How many parts and minifigures it contains if any
Its price in US dollars for this variable, use a double instead of a float
Your goal is to read this from of or more of these files, store the data, and then search it based on a few different criteria.
Main.cpp is the only file required for this assignment, but you are free to write any classfunctions 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
the problem, and how you might go about this before diving in
Searches
The different searches you will perform will be based on a menu that might look like this:
Most expensive
Largest piece count
Search for set name containing...
Search themes...
Part count information
Price information
Minifigure information
If you bought one of everything...
cout Most Expensive set" endl; cout Largest piece count" endl; cout Search for set name containing..." endl; cout Search themes..." endl;cout Part count information" endl;cout Price information" endl;cout Minifigure information" endl;cout If you bought one of everything..." end cout Exit" endl;int choice; cin choice;cin.get; clear newline character for any later j Print out how many sets were loaded Based on the choice, execute the appropriate show the results return ;Sample Outputs
There are headers in each file as you see in the picture and also picture for needed output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started