Question: How do I do the following exercise on movements using Swift code? Please explain your reasoning using comments. App Exercise - Movements Note These exercises

How do I do the following exercise on movements using Swift code? Please explain your reasoning using comments.

How do I do the following exercise on movements
App Exercise - Movements Note These exercises reinforce Swift concepts in the context of a tness tracking app. Suppose your app contains a list of different movements that can be tracked. You want to display each item in the list to the user. Use a for-in loop to loop through movements below and print each movement. let movements: [String] = [\"Walking", "Running", "Swimming", "Cycling", "Skiing", "Climbing"] Now suppose your app uses a dictionary to keep track of your average heart rate during each of the movements in movement 5. The keys correspond to the movements listed above, and the values correspond to the average heart rate that your tness tracker has monitored during the given movement. Loop through movementHea rt Rates below, printing statements telling the user his/her average heart rate during each exercise. var movementHeartRates: [Stringz Int] = ["Walking": 85, "Running": 129, "Swimming": 139, "Cycling": 128, "Skiing": 114, "climbing": 129]

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 General Management Questions!