Question: need java code Problem 1 -Name your class HikingForSloths You are hiking through the rainforests of Central Americe an a quest for sloths. Unlike sloths,

 need java code Problem 1 -Name your class HikingForSloths You are

need java code

Problem 1 -Name your class HikingForSloths You are hiking through the rainforests of Central Americe an a quest for sloths. Unlike sloths, you are a very efficiest person Floce, yu want to use this trip for exercise as well as finding slots. Mayhe you can be a role model for the sloths with your productivity Your phone has a fitness app installed that kreps track of your elevation as you hike. As you pass certain markers on the trail, he app automtically stores this elevation data into an array For examplke, a trail with five markers might produce an array like this 57.3 270.0 3 141 Each element of the amay represents the elevation (in foet above ses levely of that marker on the trail ( 6 pts) A trail is amaubred alow eltmderf at least 4.0% of its marken have an elemenn of300 n "ir ower. The trail repeesentol by the armay shove wonild be considered low altitucle, since 3 in 5 t60%) of its markers have an elevation of 200 ft or lower Writc u method isLowAltitude that takes a ID uray of double values as a parimeter nd resarss whether that trail is low sltitade 1. 2. (11 ptsi W rite a method show Traillata that ukes a ID anay of doshle values as a gerameser. The method should print the elevatiots os the trail. Each elevatios sbould be sepuesled from the next by one of these characters i the trail gaine elevation going to the next marker if the trail stays at the same clevatioe going to the next marker f the trail loses elevation going to the next marker For example, celling your method with the aay absve as the angsment hanit prim 57.3 278.8 -4.1/ 528.3 143.8 Hiat, Since the back slash is an escape character,use mye within a string to shw the backslasds character itself. 3. (3 pts) Write a main method that creates an array with the data from the example shove, then calls both anwet inea of your methods and shows the results. Youdo not nced to r

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!