MUST be written in SWIFT
1. Loop through movementHeartRates below and ifthe heart rate doesn’t fall between lowHR and highHR, continue tothe next movement and heart rate. Otherwise, print “You could go<INSERT MOVEMENT HERE>”.
let lowHR = 110
let highHR = 125
var movementHeartRates: [String: Int] = [“Walking”: 85,”Running”: 120, “Swimming”: 130, “Cycling”: 128, “Skiing”: 114,”Climbing”: 129]
2. Given the following arrays, create a new[String : [String]] dictionary. shapesArray should use the key”Shapes” and colorsArray should use the key “Colors”. Print theresulting dictionary.
let shapesArray = [“Circle”, “Square”, “Triangle”]
let colorsArray = [“Red”, “Green”, “Blue”]
3. Create a for-in loop that will loop throughthe characters of alphabet, and
PayPal Gateway not configured
PayPal Gateway not configured