Question: Write a java program that uses a linked list ordered by time using your own insert code to move values onto the list. First insert

Write a java program that uses a linked list ordered by time using your own insert code to move values onto the list.

First insert 50,000 (time) values from the distribution below,

30% of them are from a uniform double precision value from 0-10,

60% of the time from a uniform double precision value from 0-100 and

10% of the time from a uniform double precision value from 0-1000.

Then print the frequency of values between 0-10, 10+-100,100+-1000 and

when i wrote "print" above, you need to also submit an output file.

Since many of you did not do what i expected, i am adding to the instructions.

There should only be one linked list. you need to write the code to manipulate the list.

As part of your output, show the first 20 values on your linked list in order that they are on the linked list.

It makes sense to start the linked list with one node, so the header points to it outside of the loop of 50,000.

Please in Java linkedlist!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!