Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a java program that: compares the Memory and CPU efficiency between java.util.ArrayList and java.util.LinkedList . Here is the Input file: midData.csv The number of

Create a java program that:

compares the Memory and CPU efficiency between java.util.ArrayList and java.util.LinkedList.

Here is the Input file: midData.csv

The number of records in midData.csv is unknown

Each line in midData.csv contains three fields separated by commands:

ID, Age, StateCode

For example:

873719127,35, NJ

36327049,111, NH

670172212,57, SD

Create one Java program to fulfill the following:

- Read data records from midData.csv file into java.util.ArrayList and java.util.LinkedList

- Show the memory used by java.util.ArrayList

- Show the memory used by java.util.LinkedList

- Search through ArrayList to count the number of records that have the Age > 55 and show the CPU time used for this operation

- Search through LinkedList to count the number of records that have the Age > 55 and show the CPU time used for this operation.

Hint:

Ava and Eva share a bank account which has $100 in it.

Ava took out some money, the balance is $60. How much did Ava take out?

$100 - $60 = $40 Hence, Ava took out $40.

Eva took out some money, the balance is $30. How much did Eva take out?

$100 - $30 = $70 Hence, Eva took out $70.

Ava took out $40 + Eva took out $70 + balance $30 = the account had $140?

But, the original account balance was $100.

I use JGRASP so it has to be in one java file.

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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

What were some of the team norms at Casper?

Answered: 1 week ago

Question

What were some of the team roles at Casper?

Answered: 1 week ago