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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started