# Sample from my tcpprobe.dat file to use for testing (Ignore that giant gap its all supposed...

###### Question:

Sample from my tcpprobe.dat file to use for testing (Ignore that giant gap its all supposed to be one block):

*Note* xxxxx=51811, yyyyy = 51812, zzzzz = 51810 according to the data below

33.530532341 10.10.1.2:51811 10.10.2.2:5001 32 0x7ef44c9e 0x7ef3db7e 21 15 185856 193 29312
33.542474133 10.10.1.2:51811 10.10.2.2:5001 32 0x7ef457ee 0x7ef3e126 21 15 185856 193 29312
33.554576589 10.10.1.2:51811 10.10.2.2:5001 32 0x7ef457ee 0x7ef3e6ce 21 15 185856 194 29312
33.566356665 10.10.1.2:51811 10.10.2.2:5001 32 0x7ef4633e 0x7ef3ec76 21 15 185856 194 29312
33.578419057 10.10.1.2:51811 10.10.2.2:5001 32 0x7ef4633e 0x7ef3f21e 21 15 185856 195 29312

33.818567133 10.10.1.2:51812 10.10.2.2:5001 32 0x27767e39 0x2775eb29 27 19 336000 195 29312
33.830336654 10.10.1.2:51812 10.10.2.2:5001 32 0x27768989 0x2775f0d1 27 19 336000 195 29312
33.854344478 10.10.1.2:51812 10.10.2.2:5001 32 0x27768989 0x2775f679 27 19 336000 196 29312
33.878463548 10.10.1.2:51812 10.10.2.2:5001 32 0x277694d9 0x277601c9 27 19 336000 196 29312
33.902536919 10.10.1.2:51812 10.10.2.2:5001 32 0x2776a029 0x27760d19 27 19 336000 196 29312
33.926261724 10.10.1.2:51812 10.10.2.2:5001 32 0x2776ab79 0x27761869 27 19 336000 196 29312
33.950479934 10.10.1.2:51812 10.10.2.2:5001 32 0x2776b6c9 0x277623b9 27 19 336000 197 29312
33.962389651 10.10.1.2:51810 10.10.2.2:5001 32 0x38f9ae1 0x38f1e71 22 16 272256 192 29312
33.974309947 10.10.1.2:51810 10.10.2.2:5001 32 0x38f9ae1 0x38f2419 22 16 272256 193 29312
33.986437149 10.10.1.2:51810 10.10.2.2:5001 32 0x38fa631 0x38f29c1 22 16 272256 194 29312
33.998376239 10.10.1.2:51810 10.10.2.2:5001 32 0x38fa631 0x38f2f69 22 16 272256 194 29312
34.010376480 10.10.1.2:51810 10.10.2.2:5001 32 0x38fb181 0x38f3511 22 16 272256 195 29312
34.022182438 10.10.1.2:51810 10.10.2.2:5001 32 0x38fb181 0x38f3ab9 22 16 272256 196 29312
34.034363788 10.10.1.2:51810

Can someone please write this java code. I rate if the code compiles and gives the correct output. Thank you in advance!!

So, now you are asked to write a Java program to process topprobe.dat in the following way: • It deletes the last line containing incomplete data; • It replaces all white space delimiters on all lines with commas; • And it separates the three TCP flows based on their source port numbers (the source IP addresses are useless here because all three TCP flows were from the same IP) and spills them out into three separate files. Name your Java program Process_TCPProbe_yourinitial.java which must run in the following way: java Process_TCPProbe_yourinitial topprobe.dat topprobe_xxxxx_comma.dat topprobe_yyyy y_comma.dat topprobe_zzzzz_comma.dat The program takes four arguments: one raw data file as input and three output files. Of course, please replace the placeholder xxxxx , yyyyy , and zzzzz with the actual source port numbers in your data file. The following is a sample of one of the output files for your reference: 93.324970324,10.10.1.2:51205,10.10.2.2:5001,32,0x72e71882,0x72e6a762,20,15,341760,165 ,29312 93.337148466,10.10.1.2:51205,10.10.2.2:5001,32,0x72e71882,0x72e6ad0a, 20,15,341760,165 ,29312 93.349120821,10.10.1.2:51205, 10.10.2.2:5001,32,0x72e723d2,0x72e6b2b2,20,15,341760,166 ,29312

#### Similar Solved Questions

##### Cycle-1 is a fast-growing start-up firm that manufactures bicycles. The following income statement is available for...
Cycle-1 is a fast-growing start-up firm that manufactures bicycles. The following income statement is available for October: $384,00 Sales revenue (688 units @$64e per unit) Less Manufacturing costs Variable costs Depreciation (fixed) Marketing and administrative costs Fixed costs (cash) Depreciati...
##### How do you solve x/5 = (2x+1)/20?
How do you solve x/5 = (2x+1)/20?...
##### Summarise the rationale and results of: Ludwig, M., Tobin, V.A., Callahan, M.F., Papadaki, E., Becker, A., Engelmann, M....
Summarise the rationale and results of: Ludwig, M., Tobin, V.A., Callahan, M.F., Papadaki, E., Becker, A., Engelmann, M. and Leng, G., 2013. Intranasal application of vasopressin fails to elicit changes in brain immediate early gene expression, neural activity and behavioural performance of rats.pp....
##### QUESTION 7 The appropriate section in the statement of cash flows for reporting the net income...
QUESTION 7 The appropriate section in the statement of cash flows for reporting the net income is: o Operating activities, O Financing activities. O Investing activities. O Schedule of noncash investing or financing activity O This is not reported on the statement of cash flows. QUESTION 8 The appro...
##### Recently, an Uber driver lost control and killed his passengers. The driver was drunk. Should Uber...
Recently, an Uber driver lost control and killed his passengers. The driver was drunk. Should Uber be liable for the conduct of its driver in this situation? Why or why not?...
##### Jose 7 4 10. The Academic Dean of NCC believes there may be a positive linear...
Jose 7 4 10. The Academic Dean of NCC believes there may be a positive linear relationship between the number of recitations attended by a student during a semester, and the grade received in the course. The following table gives a sample of 12 students' number of recitations attended and their ...
##### 1. All students with last name starting with "A" P-1 who is at risk for HIV...
1. All students with last name starting with "A" P-1 who is at risk for HIV P-2 what are some possible preventive methods P-3 give some details about a special population affected by HIV...
##### Are hospitals competing on the basis of price, quality, or both? Should hospitals and other health...
Are hospitals competing on the basis of price, quality, or both? Should hospitals and other health care facilities make a profit? Why or why not? please with reference...
##### CengageNOW2 Online X 16 Below is A Table For Thx Q Chapter 23 Sence X Chapter...
CengageNOW2 Online X 16 Below is A Table For Thx Q Chapter 23 Sence X Chapter 26 Trefore ment/take AssignmentMain.doinvokerassignments&takeAssignmentSessionLocator assignment-takeinprogress=false 1 Mens Clothing Ch. Calculator Below is a table for the present value of \$1 at compound interest. 0....
##### The assignment is based on the case study “Starbucks’ Strategy in the Specialty Coffee Market”. QUESTION...
The assignment is based on the case study “Starbucks’ Strategy in the Specialty Coffee Market”. QUESTION 1: [30] Starbucks is planning on opening more stores in South Africa. You are requested to do an analysis of the South African macro environment and Starbuck’s market envi...
##### Using this exhibit as the population, change the starting point and sampling interval for your sampling. How do the res...
Using this exhibit as the population, change the starting point and sampling interval for your sampling. How do the resulting samples reflect the original population? BIT 8.1 Population Class Year 2nd 1st 3rd 4th Percent of Population 40% 30% 20% 10% 30% 100% 20% 30% 20% The above exhibit shows a...
##### The following is readily deprotonated to act as a nucleophile in a micheal reaction(shown in the...
The following is readily deprotonated to act as a nucleophile in a micheal reaction(shown in the deprotonated form) Provide to resonance structures that account for stabilization, each structure will only have one formal charge...
##### Celeste multiplied 44 x 5 =202
Celeste multiplied 44 x 5 =202. Is her product reasonable?Explain why or why not?...