Question
Write a c++ program that uses a linked list to store car details for a car dealership. Details include a unique ID, the car make,
Write a c++ program that uses a linked list to store car details for a car dealership. Details include a unique ID, the car make, model, year, and no of doors. Your program should contain the following functions
a) A function that takes in a pointer and creates a linked list using that pointer. The list should contain details of several cars provided by the user. Your program should keep running until the user wants to stop.
b)A function to print the car details of every car in the list in this format
Make Model Year Doors
c) Function that takes in a pointer to the first node of the linked list and let's the user add a new car to the end of the list
d) Function that takes in a pointer to the first node of a linked list and allows the user delete a particular car by providing it's uniqueID
e) Function that takes in a pointer to the first node of a linked list and an integer vales that represents a year and prints the make model and Doors for every car created after that year.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started