MakeSchool-Tutorials / Getting-Started-With-Swift-2017

0 stars 2 forks source link

Tuples: Challenge Questions 1 through 3 #7

Closed TheoBendixson closed 7 years ago

TheoBendixson commented 7 years ago

This challenge might be a little easier on students if the end coordinates are numbers that implicitly get converted to the Double type (use 375.5 and 667.3 instead).

Using 375 and 667, the values implicitly get converted to Int, which causes compiler errors when students try to do simple mathematical operations.

To a novice, compiler errors can be somewhat intimidating. If we can restructure the question so as to nudge students toward writing code that compiles with no errors, that would be ideal for the learning experience.