Question: 1 . Write a program that creates a singly link list of used automobiles containing nodes that describe the model name ( string ) ,

1. Write a program that creates a singly link list of used automobiles containing nodes that describe the model name (string), price(int) and owners name. The program should create a list containing 12 nodes created by the user. There are only three types of models (BMW, Cadillac, Toyota) and the prices range from $7500 $20,500. The program should allow the user to provide
Print a printout of all cars contained in the list (model, price, owner) Print(list_ptr*)
Provide a histogram(global array) of all cars in the list portioned into $500 buckets
Find all cars that cost less $7500- find_if( list_ptr*, int )
Calculate the average price of the cars contained in the list avrg(list_ptr*)
Provide the details for all cars more expensive than the average price
Remove all nodes having a price less than 25% of average price remove(list_ptr*, int average)
Print a printout of all cars contained in the updated list (model, price, owner)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!