Question: HELP URGET JAVA txt file numbers: -5 1000 -222 41 0 789 -123 -485 3 1 22 47 -56 102 100 88 79 -321 -1000

HELP URGET JAVA HELP URGET JAVA txt file numbers: -5 1000 -222 41 0789 -123 -485 3 1 22 47 -56 102 100 88 79

txt file numbers:

-5 1000 -222 41 0 789 -123 -485 3 1 22 47 -56 102 100 88 79 -321 -1000 2

txt file test:

Somnoroase pasarele Pe la cuiburi se aduna, Se ascund in ramurele Noapte buna ! Doar izvoarele suspina, Pe cand codrul negru tace Dorm si florile-n gradina Dormi in pace ! Trece lebada pe ape Intre trestii sa se culce Fie-ti ingerii aproape, Somnul dulce ! Peste-a noptii feerie Se ridica mandra luna, Totu-i vis si armonie Noapte buna !

txt zip file:

00401,Pleasantville ,NY,914,0471317392381,Westchester ,Eastern ,201 ,2.65 ,863200 00501,Holtsville ,NY,516,0470380145536,Suffolk ,Eastern ,25 ,3.07 ,1312000 00544,Holtsville ,NY,516,0470380145536,Suffolk ,Eastern ,25 ,3.07 ,1312000 01001,Agawam ,MA,413,0472206711542,Hampden ,Eastern ,70 ,2.64 ,444900 01002,Amherst ,MA,413,0472235915433,Hampshire ,Eastern ,140 ,2.57 ,141500 01003,Amherst ,MA,413,0472235725112,Hampshire ,Eastern ,140 ,2.57 ,141500 01004,Amherst ,MA,413,0472235723068,Hampshire ,Eastern ,140 ,2.57 ,141500 01005,Barre ,MA,508,0472241200695,Worcester ,Eastern ,475 ,2.66 ,661100 01007,Belchertown ,MA,413,0472224706185,Hampshire ,Eastern ,140 ,2.57 ,141500 01008,Blandford ,MA,413,0472219841403,Hampden ,Eastern ,70 ,2.64 ,444900 01009,Bondsville ,MA,413,0472223142558,Hampden ,Eastern ,70 ,2.64 ,444900 01010,Brimfield ,MA,413,0472212103278,Hampden ,Eastern ,70 ,2.64 ,444900 01011,Chester ,MA,413,0472229881625,Hampden ,Eastern ,70 ,2.64 ,444900 01012,Chesterfield ,MA,413,0472238931817,Hampshire ,Eastern ,140 ,2.57 ,141500 01013,Chicopee ,MA,413,0472216602642,Hampden ,Eastern ,70 ,2.64 ,444900 01014,Chicopee ,MA,413,0472216408863,Hampden ,Eastern ,70 ,2.64 ,444900 01020,Chicopee ,MA,413,0472215777023,Hampden ,Eastern ,70 ,2.64 ,444900 01021,Chicopee ,MA,413,0472216408863,Hampden ,Eastern ,70 ,2.64 ,444900 01022,Chicopee ,MA,413,0472215946438,Hampden ,Eastern ,70 ,2.64 ,444900 01026,Cummington ,MA,413,0472249602994,Hampshire ,Eastern ,140 ,2.57 ,141500 01027,Easthampton ,MA,413,0472226674066,Hampshire ,Eastern ,140 ,2.57 ,141500 01028,East Longmeadow ,MA,413,0472205616136,Hampden ,Eastern ,70 ,2.64 ,444900 01029,East Otis ,MA,413,0472310733530,Berkshire ,Eastern ,1039 ,2.58 ,141300 01030,Feeding Hills ,MA,413,0472206689055,Hampden ,Eastern ,70 ,2.64 ,444900 01031,Gilbertville ,MA,413,0472231192914,Worcester ,Eastern ,475 ,2.66 ,661100 01032,Goshen ,MA,413,0472248400413,Hampshire ,Eastern ,140 ,2.57 ,141500 01033,Granby ,MA,413,0472225514795,Hampshire ,Eastern ,140 ,2.57 ,141500 01034,Granville ,MA,413,0472208675133,Hampden ,Eastern ,70 ,2.64 ,444900 01035,Hadley ,MA,413,0472235488784,Hampshire ,Eastern ,140 ,2.57 ,141500 01036,Hampden ,MA,413,0472204612288,Hampden ,Eastern ,70 ,2.64 ,444900 01037,Hardwick ,MA,413,0472232500000,Worcester ,Eastern ,475 ,2.66 ,661100 01038,Hatfield ,MA,413,0472236701509,Hampshire ,Eastern ,140 ,2.57 ,141500 01039,Haydenville ,MA,413,0472237705800,Hampshire ,Eastern ,140 ,2.57 ,141500 01040,Holyoke ,MA,413,0472226013936,Hampden ,Eastern ,70 ,2.64 ,444900 01041,Holyoke ,MA,413,0472226014627,Hampden ,Eastern ,70 ,2.64 ,444900 01050,Huntington ,MA,413,0472228382196,Hampshire ,Eastern ,140 ,2.57 ,141500 01053,Leeds ,MA,413,0472236590873,Hampshire ,Eastern ,140 ,2.57 ,141500 01054,Leverett ,MA,413,0472244484905,Franklin ,Eastern ,250 ,2.56 ,66000 01056,Ludlow ,MA,413,0472214962012,Hampden ,Eastern ,70 ,2.64 ,444900 01057,Monson ,MA,413,0472203919565,Hampden ,Eastern ,70 ,2.64 ,444900 01059,Amherst ,MA,413,0472235723068,Hampshire ,Eastern ,140 ,2.57 ,141500 01060,Northampton ,MA,413,0472236253874,Hampshire ,Eastern ,140 ,2.57 ,141500 01061,Northampton ,MA,413,0472236245107,Hampshire ,Eastern ,140 ,2.57 ,141500 01063,Northampton ,MA,413,0472236245107,Hampshire ,Eastern ,140 ,2.57 ,141500 01066,North Hatfield ,MA,413,0472246121218,Hampshire ,Eastern ,140 ,2.57 ,141500

Working with Text Files 1) Write a program that reads a text file containing integer numbers and displays on the screen the largest and the smallest number, and the average of all the numbers in the file. 2) Consider a text file containing integer numbers separated by spaces. Write a program that reads all the numbers from the file and writes them in ascending order in another text file. 3) Write a program that reads the given text file test.txt, containing strings of characters. Write a program that reads the strings of characters from the file and writes them in another text file, by inverting the order of the lines in the output file. The first line becomes the last, the second becomes the last but one, and so on. Exercises Solve the exercises from the file Working with Text Files.pdf For the first two exercises take the input from the file numbers.txt For the third exercise take the input from the file test.txt For the last exercise take the input from the file zip.txt

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!