Question: Write a Program in C 3) You will create a record system for a car shop. Design a structure Car with the following members: Company,
Write a Program in C

3) You will create a record system for a car shop. Design a structure Car with the following members: Company, model, price. Suppose the system can hold a maximum of 100 cars. Now write a full code that will contain all the following measures. a) Populate the record system for a given number of cars (the number of cars chosen by the user) and display the models of all cars currently in the system. Save the car information from the array into a text file. [You must submit the txt file] b) Write a function to read information from the text file and then display the details of the cars with the highest price and second highest price [consider all car price is unique] NB: You may not use global variables. You should not use fread() and fwrite() function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
