Question: java language Diana Nyad is a long-distance swimmer with five major career accomplishments itn the sport. Watch Nyad's TED talk about her 2013 feat. Her

 java language Diana Nyad is a long-distance swimmer with five major

java language

Diana Nyad is a long-distance swimmer with five major career accomplishments itn the sport. Watch Nyad's TED talk about her 2013 feat. Her results are summarized in the following table: if you want to learn more Year Distance (miles) Time (hours) 1974 22 miles 1975 28 miles 8 hours 8 hours 42 hours 27 hours 1978 76 miles 1979 102 miles 2013 110 miles 53 Write a program that reads in the distance Nyad swam and the time it took her to cover that distance for each year listed in the table. The program will read in the information sequentially. The program should then compute the speed for each year. The program should also compute the average speed. An example of the program's execution sequence is shown below. The output should be displayed in a tabular format as shown below the input prompts. Enter the distance Diana Nyad swam in 1974 How many hours did it take Nyad to swim the distance? Enter the distance Nyad swam in 1975 How many hours did it take Nyad to swim the distance? Enter the distance Nyad swam in 1978 How many hours did it take Nyad to swim the distance? Enter the distance Nyad swam in 1979 How many hours did it take Nyad to swim the distance? Enter the distance Nyad swam in 2013 How many hours did it take Nyad to swim the distance? I Year | Distance (mles) I Time (hours) Speed (miles/hour) I 1974 122 miles 18 hours 1275 1978 176 miles142 hours 11.8095238095238095 2013 1110 miles153 hours 12 0754716981132075 1978 178 mdes42 nou 1 8095238085238095 Diana Nyad's average speed is 2 7825546570829593 miles/hour

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!