Question: code in Xcode. swift, not c++ Lab - Collections 2) 2. App Exercise - Activity Challenge OD Note These exercises reinforce Swift concepts in the

 code in Xcode. swift, not c++ Lab - Collections 2) 2.

code in Xcode. swift, not c++

Lab - Collections 2) 2. App Exercise - Activity Challenge OD Note These exercises reinforce Swift concepts in the context of a fitness tracking app. Your fitness tracking app shows users a list of possible challenges, grouped by activity type (i.c. walking challenges, running challenges, calisthenics challenges, weightlifting challenges, etc.) A challenge could be as simple as "Walk 3 miles a day" or as intense as "Run 5 times a week." Using arrays of type String, crcate at lcast two lists, one for walking challenges, and one for running challenges. Each should have at least two challenges and should be initialized using an array literal. Feel free to create more lists for different activities. 10 11 In your app you want to show all of these lists on the same screen grouped into sections. Create a challenges array that holds each of the lists you have created (it will be an array of arrays). Using challenges, print the first element in the second challenge list. 15 16 All of the challenges will reset at the end of the month. Use the removeAll to remove everything from challenges. Print challenges. Create a new array of type String that will represent challenges a user has committed to instead of available challenges. It can be an empty array or have a few items in it. Lab - Collections 2) 2. App Exercise - Activity Challenge OD Note These exercises reinforce Swift concepts in the context of a fitness tracking app. Your fitness tracking app shows users a list of possible challenges, grouped by activity type (i.c. walking challenges, running challenges, calisthenics challenges, weightlifting challenges, etc.) A challenge could be as simple as "Walk 3 miles a day" or as intense as "Run 5 times a week." Using arrays of type String, crcate at lcast two lists, one for walking challenges, and one for running challenges. Each should have at least two challenges and should be initialized using an array literal. Feel free to create more lists for different activities. 10 11 In your app you want to show all of these lists on the same screen grouped into sections. Create a challenges array that holds each of the lists you have created (it will be an array of arrays). Using challenges, print the first element in the second challenge list. 15 16 All of the challenges will reset at the end of the month. Use the removeAll to remove everything from challenges. Print challenges. Create a new array of type String that will represent challenges a user has committed to instead of available challenges. It can be an empty array or have a few items in it

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!