User will be presented with a menu with these options :
( underlying data structure to be a linked list)
1. Add a new car to the showroom
2. Sell a car from the showroom
3. Reserve/Unreserve a car in the showroom
4. View all cars in the showroom
5. View a specific car in the showroom
6. This should be an appropriate option that you provide
7. Exit the system
The details of a car are as follows :
- car registration (which is unique for each car and which has the format
of yyDnnnn where the yy is a year 09 to 19, D refers to Dubai and the
nnnn are any 4 integers so an example of a valid registration would be
- car make and model (e.g. ford fiesta),
- number of previous owners (cannot be more than 3. A value of 0
indicates that this is a new car).
- A boolean value that indicates if a car is reserved or not. A car is
reserved is a customer has placed a deposit on the car with the
intention to buy it at a later date.
Reserve amount – this is a deposit that a customer pays in lieu of
buying a car. This amount should be 0 if the car is unreserved.
i want the program to also contain a data file. For example program should check to see if "[login to view URL]" exists in same folder as source code. If the file does exist, then the cars in the file should be copied into the
linked list. A message should appear to say that the system has been populated with cars from the data file.
Every time a menu option has competed executing, the menu should
reappear to allow the user choose another option.
- Once the user indicates that they wish to exit the system (by choosing
option 6), the system should indicate that it is going to copy all of the
cars back to the database (i.e. the [login to view URL] file).
Add a car
o Assume that there is a maximum of 5 cars in the showroom. An error
message will appear if the list is full. Ensure that all car registrations
are unique and that the number of previous owners is not more than 3.
➢ Sell a car
o This option will delete a car from the list. Note that only cars that have
been reserved can be sold. The user will need to indicate which car
they wish to sell by inputting a registration and the list will be searched
for that registration. If the car is found and it has been reserved then it
can be sold otherwise an error message should indicate if the car could
not be found or has not been reserved.
➢ Reserve/Unreserve a Car
o This option will ask the user if they wish to reserve or unreserve a car.
If they wish to reserve a car, the car registration is input and if the car
can be found and it isn’t already reserved then it will be reserved and
the customer must pay a deposit amount of their choice (which must be
more than 500 and less than 1500). A car can also be unreserved if the
user changes their mind about buying the car.
➢ View Cars
o Users should be given the option of either viewing all the cars
currently in the showroom cars or if they wish to view all cars subject
to a specific condition (i.e. all non-reserved cars, all cars of a certain
make or all cars with a specific colour).
➢ View a specific car
o User indicates which car they want to view by inputting the car
registration and a search will be carried out to locate the car. An error
message should indicate if the car could not be found.
I would please ask you to comment the code explaining every step and the logic as i want this to be a learning experience for me. I am using visual studio 2019.
Hi, sir! I am very interesting in your project. C programming is my major field. Please check my profiles and reviews. Let's have a chat and start work right now. Best regards.
6 фрилансеров(-а) в среднем готовы выполнить эту работу за €173
Hi Manger! I am very interested in your project. This is a very good idea and a great plan. So I want to do this project. I have talent skills in C and API. So iI think I can finish this project in 3 days. Regards.