Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions