Answered step by step
Verified Expert Solution
Link Copied!

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 open-ended; you can solve this problem in any way that you see fit.
Description
First things first, the files: There are 3 main data files that you will be loading in this assignment:
lego1.csv
lego2.csv
lego3.csv
The data that you will be loading is information about a LEGO set:
1. Its set number (really a string, something like: 10195-1)
2. The theme it comes from (City, Technic, Star Wars, etc.)
3. The name of the set
4. How many parts and minifigures it contains (if any)
5. Its price in US dollars for this variable, use a double instead of a float
Your goal is to read this from 1 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 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
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:
1. Most expensive
2. Largest piece count
3. Search for set name containing...
4. Search themes...
5. Part count information
6. Price information
7. Minifigure information
8. If you bought one of everything...
cout "1. Most Expensive set" endl; cout "2. Largest piece count" endl; cout "3. Search for set name containing..." endl; cout "4. Search themes..." endl;cout "5. Part count information" endl;cout "6. Price information" endl;cout "7. Minifigure information" endl;cout "8. If you bought one of everything..." end] cout "0. Exit" endl;int choice; cin choice;cin.get(); // clear newline character for any later j //^(**)======= Print out how many sets were loaded =======3//**======= Based on the choice, execute the appropriate //"======= show the results =======**//return 0;}}Sample Outputs
There are headers in each file as you see in the picture and also picture for needed output
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

=+b) What is the maximax choice? Section 23.4

Answered: 1 week ago

Question

=+f. Audience Engagement encourage consumer participation.

Answered: 1 week ago

Question

=+d. Emotional Approach appeal to consumers' emotions.

Answered: 1 week ago