Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PROGRAMMING LANGUAGE USED IS C (30 pts) Given that C is NOT OOP, so in this question you will try to mimic OOP state of
PROGRAMMING LANGUAGE USED IS C
(30 pts) Given that C is NOT OOP, so in this question you will try to mimic OOP state of auto inventory catalogue in Q3 using C structures. Using the ordered output file created using your Ruby program in Q3, write a C program that uses that output file and works according to the following description: Creates different structure types that corresponds to different class types that you created in Q3 a. b. Each structure will contain a pointer to the next structure of the same type The top-level structure will additionally contain a pointer to the first structure in the level below that corresponds to one of the models of that car maker c. d. It reads the file and starts populating variables of the corresponding structure type and updates the linked list pointers accordingly. It will also store different vehicle listing features in the structures that it just created. You should also create the three functions explained in Q3: searchInventory, Add2Inventory, saveCatalogue2File. The implementation will be quite different as you will have to traverse the linked list (multi linked list in our case here) to find different listing and process them accordingly e. The multi linked list of structures should look like the figure below: Maker-lev Maker structures members*below next next Maker Structuren members next below Structure1 Structure2 members *next siructure 1 below next 2below Model Model-level structures Model Structure 2 members members next next ture below Structure 1 members (30 pts) Given that C is NOT OOP, so in this question you will try to mimic OOP state of auto inventory catalogue in Q3 using C structures. Using the ordered output file created using your Ruby program in Q3, write a C program that uses that output file and works according to the following description: Creates different structure types that corresponds to different class types that you created in Q3 a. b. Each structure will contain a pointer to the next structure of the same type The top-level structure will additionally contain a pointer to the first structure in the level below that corresponds to one of the models of that car maker c. d. It reads the file and starts populating variables of the corresponding structure type and updates the linked list pointers accordingly. It will also store different vehicle listing features in the structures that it just created. You should also create the three functions explained in Q3: searchInventory, Add2Inventory, saveCatalogue2File. The implementation will be quite different as you will have to traverse the linked list (multi linked list in our case here) to find different listing and process them accordingly e. The multi linked list of structures should look like the figure below: Maker-lev Maker structures members*below next next Maker Structuren members next below Structure1 Structure2 members *next siructure 1 below next 2below Model Model-level structures Model Structure 2 members members next next ture below Structure 1 membersStep 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