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, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
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, 26.01.2021 18:40
question
Mathematics, 26.01.2021 18:40
question
Chemistry, 26.01.2021 18:40