Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 9 Weeks Ago, 5 Days Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hi, please see attached document. Â I need it in JAVA. Â Thanks
Â
You have been hired byPlanet Poachersto write a Java console application thatreads, converts, sorts, and writes planet data.Create text filePlanetDataEnglish.txt, paste the following data into it, and place the file in yourproject folder.PlanetDataEnglish.txtPlanetEscape Velocity (miles/s)Mean Temperature (F)Number of MoonsMercury2.73330Venus6.48670Earth7.0591Mars3.1-852Jupiter37.0-16667Saturn22.1-22062Uranus13.2-32027Neptune14.6-33013Pluto0.7-3755Create the following methods:ColumnPurposereadTextFileTo read the data from filePlanetDataEnglish.txtinto fourparallel arrays: planets, escapes, means, and moons.printArraysTo print the unsorted, converted, and sorted data using theappropriate column headers.convertArraysTo convert the escape velocities from miles/s to km/s, andto convert the mean temperatures from Fahrenheit toCelsius.bubbleSortArrayTo sort the data by planet name in ascending order.Notethat when values are swapped in one array, the samevalues must be swapped in the other arrays.writeTextFileTo write the data to filePlanetDataMetric.txtin the samelayout as the input file.Use the methods to:1) Read the data.2) Print the unsorted data.3) Convert the data.4) Print the converted data.5) Bubble sort the data.6) Print the sorted data.7) Write the data.Here are the first few lines of the output file:
Attachments:-----------