Question: I am needing to create a C++ program with the following criteria and am not sure how to. Develop a C++ program that maintains a

I am needing to create a C++ program with the following criteria and am not sure how to.

Develop a C++ program that maintains a linked-list based bag structure for a house dataset. Each house has price, color, ID, year, and owner data. See for details. - price: positive real number, between $1000.00-$999,999.99. Randomly generated in your program. - color: enumeration type that includes seven colors {red, blue, white, black, gray, green, yellow}. Randomly selected in your program. - ID: positive whole number, 10 chars, should have three A-to-Z chars. Randomly generated in your program. A unique data piece for each house, meaning that no two houses have same ID. - year: between, 1910 and 2017. Randomly generated in your program. - owner: One word string, having only a-z and A-Z. The first letter is capitalized, the rest are lowercase. Randomly generated in your program. You should write a class to maintain a bag, which is similar to in-class example of items. Your class should provide these functions: - Create a bag - Programmatically add 1000 houses to the bag. - Add a new house (all data pieces will be randomly created) - Search a house with ID - List IDs of the houses what are specified by a color. (for instance, IDs of all white houses) - List IDs of the houses what are specified by owner name. (search by owner name) - Remove a house with ID - Remove the last house (the one just added) - Remove all house (free structs from memory) - Get the number of house in the bag

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!