cpu efficiency

Dokončeno Zveřejněno Nov 18, 2014 K zaplacení v momentě doručení
Dokončeno K zaplacení v momentě doručení

Homework #3

This is an individual assignment.

It is not possible that 2 persons could come up with the same solution.

Please NEVER submit binary files, including zip files and bytecodes.

Objective:

Compare the CPU efficiency between [url removed, login to view] and [url removed, login to view]

(Operations under comparison include: Search and Update)

It is recommended that you implement your solution by developing 2 separate Java programs.

Grading: (Total 12%)

 8% will be deducted, if either of your .java files does not compile

 6% will be deducted, if either of your programs produces an incorrect output

 4%, will be deducted, if you did not include your scenario or conclusion

Please name your .java files using your last name as the prefix:

YourLastName…...java

YourLastName…...java

For example,

[url removed, login to view]

[url removed, login to view]

You can name your data file, transaction to the name of your choice.

In order to test and show the CPU time used by TreeSet and HashSet, you need to create your own scenario

along with your own data file and transaction file. You also need to submit a file in MS Word or pdf format to

describe your scenario and your conclusion.

What needs to be submitted?

 The .java files

 The data file

 The transaction file

 A file in MS Word or pdf format to describe your scenario and conclusion

 DO NOT submit your output files.

Examples of scenario:

1. To update the shipment date for shipped orders.

Order record in the Data file contains: OrderID, OrderDate, ShipmentDate, CustomerID

Each line in the Transaction file contains: OrderID, ShipmentDate

This program

o reads order records from the data file into TreeSet and HashSet data structures

o reads a line from the transaction file

o performs necessary update to the records stored in these data structures

o repeat until all lines in the transaction file has been processed

o save the updated records into files: outputTreeSet and outputHashsetCMP561 Homework #3 Page 2

2. To update the status of students.

Student record in the Data file contains: StudentID, LastName, FirstName, Status

Each line in the Transaction file contains: StudentID, status (Accepted, Attending, Withdrew, Graduated)

This program

o reads order records from the data file into TreeSet and HashSet data structures

o reads a line from the transaction file

o performs necessary update to the records stored in these data structures

o repeat until all lines in the transaction file has been processed

o save the updated records into output files: outputTreeSet and outputHashset

3. To update customer payment information.

Payment record in the Data file contains: CustomerID, Balance, PaidAmount

Each line in the Transaction file contains: CustomerID, Payment (to be added to the PaidAmount)

This program

o reads order records from the data file into TreeSet and HashSet data structures

o reads a line from the transaction file

o performs necessary update to the records stored in these data structures

o repeat until all lines in the transaction file has been processed

o save the updated records into output files: outputTreeSet and outputHashset

Your scenario needs to include both search and update operations. In all of the above scenarios, in order to

perform the necessary update, the program needs to find the record by OrderID, StdudentID or CustomerID

require these files
UpdateOrder.java is the program.

orders.csv is the data file.

updates.csv is the transaction file

Java

Identifikační číslo projektu: #6752067

O projektu

6 nabídek Projekt na dálku Aktivní Nov 23, 2014

Uděleno uživateli:

tonygiri

I have 6 years in devel;oping java/j2ee applications. I will deliver code with quality testing and on-time delivery

$12 USD za 1 den
(2 recenzí)
1.0
it2051229

Hi, I would like to do this project please. Let me know if you are interested so I can have additional details. Thanks.

$30 USD za 1 den
(438 recenzí)
6.8

6 Freelnceři na tento projekt zveřejňují nabídky v průměru $30

eperfections

Sir, I did 600+ projects in Java. I am competent to do this assignment. Will provide well commented code. Thanks

$30 USD za 1 den
(353 Recenzí)
7.1
lovinagarwal21

I have 9+ years of exp in c c++ java j2ee hibernate spring webservices databases. Done multiple projects like this and almost proficient in design patterns..Checkout my reviews, all projects were completed successfully Další

$40 USD za 1 den
(55 Recenzí)
5.7
anish424

will do this in 2 days time easily not to worry, Can easily do this, Have done these programs in past

$10 USD za 1 den
(0 Recenzí)
0.0