Question: 1 . Write a program that creates a singly link list of used automobiles containing nodes that describe the model name ( string ) ,
Write a program that creates a singly link list of used automobiles containing nodes that describe the model name string priceint and owners name. The program should create a list containing nodes created by the user. There are only three types of models BMW Cadillac, Toyota and the prices range from $ $ The program should allow the user to provide
Print a printout of all cars contained in the list model price, owner Printlistptr
Provide a histogramglobal array of all cars in the list portioned into $ buckets
Find all cars that cost less $ findif listptr int
Calculate the average price of the cars contained in the list avrglistptr
Provide the details for all cars more expensive than the average price
Remove all nodes having a price less than of average price removelistptr 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
