Completado

Storing Collections of Objects in Java

Write a total of three classes. • CompactDisk • MusicShop • MusicShopClient Class #1: CompactDisk • Instance variables o Class CompactDisk should have two instance variables: name and price of the CD. • Constructor o This constructor should accept two arguments name and price, and initialize the CompactDisk object. • Getter Methods o Define a getter method for each instance variable. • toString method o This method should return a string that represents the information of the object. Class #2: MusicShop • Instance variables Class MusicShop maintains an array of CompactDisk objects and an instance variable size that indicates the current number of compact disks (CDs) held in the shop. • Constructor Write a constructor for class MusicShop. The constructor has one argument, which is the maximum number of CDs that the shop can hold in storage. The constructor initializes the array of CompactDisk objects to hold that number. • Method for reading information about CDs Write a method for reading information about CDs. The method should keep reading information for each of the CDs until the end of input and store that information in the array of CompactDisk objects. • Method for displaying information of CDs Write a method for displaying information about all CDs in the shop. Need to use the toString method you have already created for class CompactDisk in this method. • Method for finding the number of CDs satisfying given conditions Write a method that finds the number of CDs whose prices are less than or equal to a given price passed as the argument, and then returns that value. Class #3: MusicShopClient Class MusicShopClient creates a MusicShop object, reads the information about CDs held in the shop, displays each CD’s information and prints the number of CDs whose prices are less than or equal to a given price.

## 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

Must run in Windows XP. Must run/compile in Blue J environment Cannot have errors.

Habilidades: Ingeniería, Java, MySQL, PHP, Arquitectura de software, Verificación de software

Ver más: use of collections in java, string source code java, string j, hire define, define hire, collections etc, php less than or equal to, COLLECTIONS, java reading, java blue, accept class argument java, blue java, java constructor accept argument, java blue code, cds php, java law, java program classes, methods java program, java windows installation package, Java string, end argument, windows desktop java, php site storing code, store value java, java end

Información del empleador:
( 12 comentarios ) United States

Nº del proyecto: #3156990

Adjudicado a:

lvmicrosystems

See private message.

$2 USD en 2 días
(5 comentarios)
3.0

19 freelancers están ofertando el promedio de $20 para este trabajo

bbarar

See private message.

$8.5 USD en 2 días
(321 comentarios)
6.0
lostbard

See private message.

$13.6 USD en 2 días
(220 comentarios)
5.1
senzaciosnegyes

See private message.

$11.05 USD en 2 días
(104 comentarios)
4.9
lmxvw

See private message.

$11.9 USD en 2 días
(126 comentarios)
4.7
bunts007

See private message.

$8.5 USD en 2 días
(47 comentarios)
4.6
jman47

See private message.

$17 USD en 2 días
(41 comentarios)
4.5
MyRiddler

See private message.

$12.75 USD en 2 días
(31 comentarios)
3.7
grayfacedbu

See private message.

$12.75 USD en 2 días
(39 comentarios)
3.5
rsudomo

See private message.

$17 USD en 2 días
(14 comentarios)
3.0
VerdeOeste

See private message.

$29.75 USD en 2 días
(5 comentarios)
2.3
wahabsl

See private message.

$12.75 USD en 2 días
(9 comentarios)
2.2
ghwerig

See private message.

$17 USD en 2 días
(1 comentario)
1.9
dasbub

See private message.

$7.65 USD en 2 días
(3 comentarios)
1.4
mskhanvw

See private message.

$12.75 USD en 2 días
(1 comentario)
1.0
krazyg

See private message.

$17 USD en 2 días
(1 comentario)
0.0
cmsctutor

See private message.

$102 USD en 2 días
(0 comentarios)
0.0
rathiandi

See private message.

$42.5 USD en 2 días
(0 comentarios)
0.0
javaaspirant

See private message.

$25.5 USD en 2 días
(0 comentarios)
0.0