Answered You can hire a professional tutor to get the answer.
Generate a C++ program with following criteria: price: between 0-9999. Randomly generated. color: string, out of red, blue, white, black, gray,...
Generate a C++ program with following criteria:
price: between 0-9999. Randomly generated.
color: string, out of red, blue, white, black, gray, green, yellow. Randomly selected.
VIN: 5 chars, should have two A-to-Z chars. Randomly generated.
year: between 1950 and 2017. Randomly generated.
owner: One word string,Randomly generated.
Program should have class contain following functions:
-Generate a bag
- Add a new car (all data pieces will be randomly created), program will automatically add 1000 cars to the bag
- Search a car with VIN
- List VINs of the cars what are specified by a color.
- List VINs of the cars what are specified by owner name.
- Remove a car with VIN
- Remove the last car (the one just added)
- Remove all cars (do not forget to free structs from memory)
- Get the number of cars in the bag