Question: For this assignment, you will learn how to use the List class and implement a store front- a SUPERmarket that caters to Superheroes. You cannot

For this assignment, you will learn how to use the List class and implement a store front- a SUPERmarket that caters to Superheroes.

You cannot use vectors for this assignment. You must learn to use the list class in the standard library.

The store sells items of different types (weapons, armor, gadgets). Each item has a name (a string) and a price (an int). Prices must be >= 0. If the user enter a negative price, call die().

You will implement the following things:

1) Being able to add things to weapons, armor, and gadgets list.

2) The armor list is always sorted by name

3) The gadgets list is always sorted by price (high to low)

4) Purchase the first item off a list

5) Transfer all items in a list to the clearance list

6) Purchase things off the clearance list at half price

7) Clear the clearance list programming language is C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!