Question: using c++ Write a program to track the cars in the car gallery. Your program must contain four vectors, 1- Vector of strings to store

using c++

using c++ Write a program to track the cars in the car

Write a program to track the cars in the car gallery. Your program must contain four vectors, 1- Vector of strings to store the brand names. 2- Vector of doubles to store the price per item for each car. 3- Vector of integers to store the year model of the car. 4- Vector of integers to store the number of sold items from each car. The car information (brand name, price, model and number of sold cars) are found on the same index in all vectors. You program must define the following functions: - Input: Your program at first prompts the user to enter the needed data. Note that the user will enter the brand name, followed by the car price, year model, and the number of sold items, you have to store the data in the suitable vector. To end input the user will enter word "end" to stop. - Change the price: the function must prompt the user to determine the car he want to change its price (brand name, model), then replace the old price with the new one (which is entered by the user). - Remove: takes the brand name and year model as input and removes it from the vector of products, note that you must remove the price and number of cars that correspond to the removed product also. - Min: show the brand name and year model with the min gross sales, i.e. total sales for the sold cars. Inside the main start by calling input function and then call all other functions in any proper way you want. Note that all functions are working on the same four vectors (that store the names, price, model and number of items)

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!