This C++ program simulates the operations of a car dealership that specializes in listing cars for other people. It was initially created as a college task and has been gradually improved every one or two weeks with new functionality and programming features, such as overloaded operators, nested classes, and class friend.
The program was designed for the director of a car dealership to easily add new vehicle owners and create listings for their vehicles with specified data. The user can change the current vehicle type, such as car or motorcycle in the main menu. In addition, the program allows for testing by randomly generating example data, as well as writing to and reading from a file. The program also includes a search function that allows users to search through listings using specific criteria, such as gearbox type or fuel consumption.
The program offers the following unusual options:
- changing the vehicle type from the main menu,
- editing the chosen listing, with the choisen atttibute to be changed,
- searching throught the listings and displaying only these that meet chosen criteria ex. (production year, price),
The program offers the following options:
- Randomize owners and listings for testing
- Add an owner
- Remove an owner
- Display owners
- Add a new listing
- Edit a listing
- Delete a listing
- Display listings
- Search through listings
- Confirm sale
- Display the amount of owners and listings
- Write to a file
- Read from a file
The program includes the following advanced features:
- Editing a chosen listing, with the chosen attribute to be changed,
- Searching through listings and displaying only those that meet specific criteria, such as production year or price.