Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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...
Sample Outputs
The most expensive set is:
Name: Death Star
Number: 75159
Theme: Star Wars
Price: $499.99
Minifigures: 27
Piece count: 4016
The set with the highest parts count:
Name: Surf N' Sail Camper
Number: 6351
Theme: Town
Price: $19.00
Minifigures: 2
Piece count: 188
Average part count for 971 sets: 550
#include -??*23??*==============*???*??*=m=m====m=m*?
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

Step: 3

blur-text-image

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

=+c) Complete the test and report your conclusion.

Answered: 1 week ago