Create a folder called Space

  • Create a class called Shuttle with the instance variable provide in the table below (parenthesis).
  • It will need appropriate methods and constructors. Make sure to have a toString() method.
  • Create a class called ShuttleTester
    • This program will be written with arrays.
    • Create a method called printShuttles() that traverses through the array and prints out each element.
    • Create a method called sortShuttle() that sorts the array using shuttleName. You may choose to use sorting algorithm of your choice (e.g. Insertion, Selection, or Merge, but not the Bubble sort). Print the sorted list.
    • Create a method called sortNum Flights() that insertion sorts the array using numFlights. Print the sorted list.
    • Create a method called sorttotCrew() that selection sorts the array using totCrew. Print the sorted list.
    • Create a method called sortDaysInSpace() that merge sorts the array using days. Print the sorted list.

Space Shuttle Name (shuttleName) Number of Flights (numFlights) Number of Orbits Around the Earth (numOrbits) Miles Travelled (miles) Total Crew Over Time (totCrew) Days in Space (days)
Columbia 28 4808 121696993 160 300
Challenger 10 995 23661290 60 62
Discovery 39 5830 148221675 252 365
Endeavour 25 4671 122883151 73 299
Atlantis 32 4648 120650907 203 293

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.