Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Class KsuCars: And other attribute(s) deduced from the UML diagram. display (): Displays all the attributes of an object KsuCars. search (String ce): This method

image text in transcribed
image text in transcribed
Class KsuCars: And other attribute(s) deduced from the UML diagram. display (): Displays all the attributes of an object KsuCars. search (String ce): This method receives a String representing the name of a Car object and returns the array index of the car object. getCar (String nm): This method receives a String representing the id of a Car object and returns the Car object if it's exist. removeCar (String s): Removes a Car according to its name. It will return a value true if the operation has been completed successfully, or false if not. AveragePrice(int y): Calculates the average price of all car in an object of class KsuCars that produced after the year y. + (in ........): if you need an other methods in this class you can add it. The main class: In the main you should be able to create a KsuCars with at least 3 cars. Each car has at least 4 car element. A display should be called to see all the entered data Car name : string -id:string -seatNb : int |-year: int -ncel : int +Carrin n string, in d: string, in sint, in y:int, in size : int) +display +isFull(): bool +copyCar(in ca: Car) +addElement(in el: CarElements): bool +PriceCar(): double CarElements -code: string -price: double +CarElements (in c: string, in p: double) +CarElement(in E: CarElements) +display() . KsuCars -nbc : int +KsuCars(in size : int) +display) +isEmpty(): bool +searchCar(in ce : string): int +getCar(in nm : string): Car +Average Price(iny:int)double +..............) +remove(ins: string): bool

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

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions

Question

What are the benefits of creating a disaster recovery plan?

Answered: 1 week ago