User must be prompted for the name of the inventory file.
Each car’s record must be stored in a structure with tag UsedCarID and defined as
follows:
struct UsedCarID {
char StockNumber[20];
int Year;
char Make[20];
char Model[20];
char Color[20];
int Mileage;
char VIN[20];
char License[20];
int InternetPrice;
int RetailPrice;
};
Depending on the number of records in the inventory file, the
program must allocate sufficient amount of memory dynamically.
the program must be able to respond to queries using the following menu.
1 List of cars with Internet Price within a user-supplied range.
2 List of cars with Mileage within a user-supplied range.
3 List of cars made within a user-supplied range of Years.
4 List of cars with a user-supplied Make.
5 List of cars whose VIN ends with 4 user-specified digits.
6 Exit
Each of the above must be implemented as a user-defined function call.
Record of car(s) meeting the specified search conditions must be outputted to the console
with the aid of a user-defined function and in the format shown in the attachment.
If no cars meet the specified search conditions, the user must be notified as such.