question archive In this assignment you are to make an inventory management system for a car dealership
Subject:Computer SciencePrice:3.87 Bought7
In this assignment you are to make an inventory management system for a car dealership. The dealerships current method of tracking inventory is using a list which has the color and name of each car they have in inventory. There current inventory list will look like the example below.
RED TOYOTA WHITE HONDA BLACK BMW
The types of cars that they order are as follows:
TOYOTA, HONDA, BM, NISSAN, TESLA, DODGE
The colors they purchase are as follows:
RED, WHITE, BLUE, BLACK, GREY, PINK
You are to ask the user for the name of the file that holds the current inventory list. Once given to you, parse the list and populate a 2D array to track the number of cars with a certain type and color. All colors and types of car may not be present in the inventory list. You should also tell the user (in the terminal, use cout to print the message) if you come across a car type or color that you are not tracking. If you come across a car or color that you are not tracking do not store it in your new inventory database only notify the user that you found it, your output for this prompt should match the below example.
Prompt to show when you find something that you are not tracking: Unknown car or color in the input file
UNKNOWN CAR COLORS UNKNOWN CAR TYPE
Once you are finished you have parsed the input file prompt the user for the name of the output file they would like you to store the new database in. The output file should follow the format given below (yes you will need to use iomanip to get this format)
RED HITE BLUE BLACK GREY PINK
TOYOTA HONDA BAM NISSAN TESLA DODGE
Purchased 7 times