subject
Computers and Technology, 28.09.2020 15:01 eme05

You are asked to implement the code that: ● Reads an input file containing integer values;
● Inserts the values into a sorted singly linked list. You can either create a linked list from
scratch by yourselves or use the Java standard library LinkedList class libraries. Both
approaches are acceptable.
● Reports minimum (referred to as ‘min’), maximum (‘max’), and median (‘med’) of the list
● Reports the time that it takes to:
○ insert all the values into the list (‘time_insert’)
○ find minimum of the list after all values are inserted into the list (‘time_min’)
○ find maximum of the list after all the numbers are inserted into the list
(‘time_max’)
○ find median of the list after all the numbers are inserted into the list (‘time_med’)
Your program should get through filename through one of two places:
1) The command line: java Benchmarking myFilename. txt
2) By prompting the user to enter a filename if no filename is provided on command line
It should open the file, read in the values to store in sorted order into the list, and should print
out the output numbers (min, max, med, time_insert, time_min, time_max, time_med) with
appropriate messages.
Note that the linked list should contain ‘sorted’ values at any point in time. Thus, you cannot
insert all the values into the list first and then try to sort the numbers. Instead, the list should
remain a sorted one after every insertion.
The timing statistics should be in seconds or milliseconds or microseconds (whichever gives the
closest precision to measure the actual time of the event). Now, it may so happen that if a
particular timed event's time is less than a second, your timer function will show 0 seconds.
Obviously this does not mean 0.0 seconds. It just means you need to measure the time at a
lower/finer resolution and use milliseconds or microseconds. If it turns out that the timed event is
smaller than a microsecond, then you can consider that time to mean really "0" seconds ‐ i. e.,
nothing to add to your timer variable


You are asked to implement the code that:

● Reads an input file containing integer values;
● Ins
You are asked to implement the code that:

● Reads an input file containing integer values;
● Ins

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
Dereck works for long hours on his computer.  he frequently experiences physical strain by the end of the day because he does not follow an important rule of ergonomics with respect to the use of keyboards.  which of the following actions of dereck could lead to physical strain? a.  placing the keyboard exactly in front of him while typingb.  keeping hands and wrists straight while typingc.  using wrist pads throughout the dayd.  pounding at the keys on the keyboard while typinge.  resting his hands on the keyboard when he is not typing
Answers: 1
You know the right answer?
You are asked to implement the code that: ● Reads an input file containing integer values;
●...
Questions
question
Mathematics, 06.01.2021 18:10
question
Biology, 06.01.2021 18:10
Questions on the website: 13722367