Creating a list of objects using the Comparator classes

已取消 已发布的 Feb 28, 2005 货到付款
已取消 货到付款

Creating a list of Car objects ============================================= Program name ============ [login to view URL] (EasyIn is abstract) Description =========== You are provided with a class Car which represents the attributes of a used car. The class provides a constructor but you are to provide a toString() method. You are also provided with skeletons for classes CarList and TestCarList. In CarList, you are to provide definitions for the methods sortByPrice()and sortByEngineSize(). In TestCarList, you are provided with all necessary methods, except for a suitable main(String[] argv) method. Input Format ============ Interactive, prompted. Input Example ============= Enter details of cars when prompted. Enter Car Make Model Trim, on one line, e.g. Citroen C5 GL or press return to end. Citroen C5 GL Enter year of manufacture : 2003 Enter price in whole pounds: 9995 Enter engine size in cc : 1400 Enter number of doors (2-5): 5 Enter mileage : 12345 Enter Car Make Model Trim, on one line, e.g. Output Format ============= See output example below. Pay close attention to the spacing and punctuation in the listings below, when coding your [login to view URL]() and Test- [login to view URL](String[] argv) methods. Marking ======== 100% dynamic correctness with an unseen set of car data. Your source programs will be assessed to verify that you have sorted the data using the sort method provided in Java, and not, for example, reusing code from a Semester I exercise. Notes and hints =============== Use anonymous Comparator classes as arguments to sort rather than defining named classes that extend java.util.Comparator. Output example ============== Citroen C5 GL (2003), 1400cc, 5dr, 12k, 9995. Peugeot 405 GLX (1995), 1900cc, 5dr, 110k, 995. Fiat 500 Abarth (1966), 649cc, 2dr, 56k, 5995.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

WIn XP

数据库管理 工程 Java 微软 MySQL PHP 软件构架 软件测试 SQL 视窗桌面

项目ID: #3587044

关于项目

10个方案 远程项目 活跃的Feb 28, 2005

有10名威客正在参与此工作的竞标,均价$13/小时

bbarar

See private message.

$14.92 USD 在4天内
(321条评论)
6.0
borlandervw

See private message.

$17 USD 在4天内
(49条评论)
5.9
bogdan123vw

See private message.

$12.75 USD 在4天内
(48条评论)
3.8
grayfacedbu

See private message.

$15.3 USD 在4天内
(39条评论)
3.5
jteamvw

See private message.

$17 USD 在4天内
(30条评论)
4.6
anabuvw

See private message.

$12.75 USD 在4天内
(8条评论)
3.0
mutantxvw

See private message.

$6.8 USD 在4天内
(11条评论)
1.6
brightlightvw

See private message.

$17 USD 在4天内
(5条评论)
1.1
onutza

See private message.

$3.4 USD 在4天内
(1条评论)
0.0
chisovw

See private message.

$17 USD 在4天内
(0条评论)
0.0