You are on page 1of 1

Using the Standard Template Library, develop a C++ program from a Lego store where the user tells

you a product entry


and the program give you a list of the parts that are needed so that it can be assembled.

Input Example: Helicopter

Output Example:

2x 4516055

1x 6181863

1x 4226995

1x 6214813

Input Example: Car

Output Example:

1x 459901

1x 241221

2x 4530734

**In this case, only two products will be stored in a list, the user will introduce the product (input) and will see the
quantity of pieces with which the product can be assembled (output)

The values can be just printed, but they need to match with the input the user gave and be stored in a list. E.g.

Car pieces: 2x 4516055

4x 4666579

1x 4107623

5x 6024495

2x 4124455

4x 4114309

2x 4114324

1x 6116797

Helicopter Pieces:

6x 6020193

1x 6128992

2x 362226

1x 6181863

1x 400626

4x 6102596

2x 6037746

You might also like