Question: Swift in Xcode 3 ## App Exercise-Ternary Messages 5 >These exercises reinforce Swift concepts in the context of a fitness tracking app 7 The code

Swift in Xcode

Swift in Xcode 3 ## App Exercise-Ternary Messages 5 >These exercises reinforce

3 ## App Exercise-Ternary Messages 5 >These exercises reinforce Swift concepts in the context of a fitness tracking app 7 The code below should look similar to code you wrote in the Fitness Decisions exercise. The if-else statement is actually unnecessary, and instead you can print either one statement or the other all on one line using the ternary operator. Go ahead and refactor the code below to do just that. 9 let stepGoal 10880 10 let steps 3948 12 13 lif steps

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!