Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Generate a C++ program for cars with these criteria all randomly generated: price: between 0-9999. color: string, out of red, blue, white, black,...

Generate a C++ program for cars with these criteria all randomly generated:

price: between 0-9999.

color: string, out of red, blue, white, black, gray, green, yellow.

VIN: 5 chars,have two A-to-Z chars.

year: between 1950 and 2017.

owner: One word string.

Program should have class with these functions:

-Generate a bag

- Add a new car, program will automatically add 1000 cars to the bag randomly

- Search a car with VIN

- List VINs of the cars specified by color.

- List VINs of the cars specified by owner name.

- Remove a car with VIN

- Remove the last car (the one just added)

- Remove all cars (free structs from memory afterwards)

- Get the number of cars in the bag

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question