Question: Exercise 1 Write a C++ class Car Each car has an id, plateNumber, brand, model, color and price. Write a C++ function that ask the

 Exercise 1 Write a C++ class Car Each car has an
id, plateNumber, brand, model, color and price. Write a C++ function that
ask the user to insert as mutch as he/she wishes. Cars should

Exercise 1 Write a C++ class Car Each car has an id, plateNumber, brand, model, color and price. Write a C++ function that ask the user to insert as mutch as he/she wishes. Cars should be stored in a array. Write a C++ function that take as parameter a string, this function shoud ask the the criteria used to sort the cars and sort the existing cars based on the selected criteria. For example if user give price the function shoud sort the array based on the price of car. If user give color function sort the array based on alphabetical order of color of cars. Write a C++ function to display the sorted data. Note You can use any sorting algorithm Exercise 2 Write a class Event Each event has an id, title, location, date and number of speakers. Write a C++ function that ask the user to insert several Event and store the data in an amay. Write a C++ function that sort the event based on thier date. Write a C++ function that sort the event based on the number of speakers. Write a function to display the sorted data. Exercise 3: Give the longuest Common Subsequence of the following strings ASFTHKLMABSCAP B- ZXECZEEFGMSKA Exercise 4: (a) Insert the following sequence of elements into an AVL tree, starting with an empty tree: 50, 6, 18, 34, 62, 12, 8, 55, 89, 2, 23, 76 (b) Delete 23 in the AVL tree that you got. Exercise 5 Find the shotest path using the forward technique

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!