Group Group Group Group Group Group Group Group Group

raywenderlich.com Forums

Video Tutorial: Beginning Swift 2: Series Introduction

Find out what's covered in our Beginning Swift video series and get started learning Swift 2.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3250-beginning-swift-2/lessons/1

I was completing the first playground challenge and believe there might be a mistake in one of the examples. This is in regards to the challenge asking for the calculation of the tip factoring in a $4.00 off coupon. The example mentions the calculation should deduct the coupon before the tip is calculated. The finished example shows the answer as: 75 * 1.18 - 4.

I believe the correct calculation should be (75 - 4) * 1.18. This deducts $4.00 from the bill (75) and then, after that value is calculated, factors in the tip.

Hope this helps!

Brian