Originally Posted by Assignment
Scenario:
You are supposed to write a program for a car manufacturing company to track their production. In order to do this you have to have a function that reads the information from keyboard and saves them both in an array (of car structure) and in a linked list.
You are supposed to have a structure that contains VIN (Vehicle Identification number, which is a 10 digit number), Car make, Model, year and color as well as car’s technical information.
Car’s technical information should be kept in another structure that is eventually going to be composed in the car structure (your car structure has a technical structure in it)
The car technical info is consisted of No of cylinders, horse power and engine volume which are all integers).
Obviously you have to have functions to create a menu, add car info, edit car info and delete car info to show a menu, add a car to the array and linked list, Edit car’s info in both array and linked list and deleting a car from array and linked list respectively.
I also want you to maintain your linked list a little different than last time, you are still going to have a doubly linked list but the head of the list is NOT global any more, this way I want you to pass it by reference so you get experience on that.
You should also have to have a function that sorts both array and linked list based on VIN when its option is selected from the menu.