Question: Java Please The following data will be used for this project Mountain Country Elevation Chimborazo Ecuador 2 0 , 5 4 9 ft Matterhorn Switzerland

Java Please
The following data will be used for this project
Mountain Country Elevation
Chimborazo Ecuador 20,549 ft
Matterhorn Switzerland 14,692 ft
Olympus Greece (Macedonia)9,573 ft
Everest Nepal 29,029 ft
Mount Marcy - Adirondacks United States 5,344 ft
Mount Mitchell - Blue Ridge United States 6,684 ft
Zugspitze Switzerland 9,719 ft
Write a program that will include the following:
A class that will store mountain details which will included the following:
List item
Member for the name, (make it private)
Member for the country, (make it private)
Member for the elevation, (make it private)
Setters and getters for all the data members. (Make them public)
A member function call toMeters that will take the elevation and convert the value from feet to meters and return the converted value. The relationship for feet to meters is 1 meter per 3.2808 feet
In the main function of the Main class, create 7 instances of Mountain objects and put the mountain data from the table above.
Put the mountain objects in an appropriate data structure for the language that you are writing this for. Sort the structure using a sort method.
Write a method called minElevation that will return the minimum elevation.
Iterate over the data structure that contains the Mountain objects and print out the Mountain details similar to the table above, with the addition of the elevation in feet and in meters.
Programmatically print out the elevation and name of the shortest mountain (do not hard code this).
The output for this program should be the following:
Minimum Elavation =5344ft
Chimborazo, Ecuador: 20549ft OR 6263.41 meters Matterhorn, Switzerland: 14692ft OR 4478.18 meters Olympus, Greece (Macedonia): 9573ft OR 2917.89 meters Everest, Nepal: 29029ft OR 8848.15 meters Mount Marcy - Adirondacks, United States: 5344ft OR 1628.87 meters Mount Mitchell - Blue Ridge, United States: 6684ft OR 2037.31 meters Zugspitze, Switzerland: 9719ft OR 2962.39 meters
Mount Marcy - Adirondacks, United States: 5344ft OR 1628.87 meters Mount Mitchell - Blue Ridge, United States: 6684ft OR 2037.31 meters Olympus, Greece (Macedonia): 9573ft OR 2917.89 meters Zugspitze, Switzerland: 9719ft OR 2962.39 meters Matterhorn, Switzerland: 14692ft OR 4478.18 meters Chimborazo, Ecuador: 20549ft OR 6263.41 meters Everest, Nepal: 29029ft OR 8848.15 meters
Mount Marcy - Adirondacks is the smallest
Note: Make sure that you put the header comments in this main class file.

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!