Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Object-Oriented Objective-C Memory, Arrays and Loops, Oh My! Immersive Example - Gabe's KFC

Daniel Kokin
Daniel Kokin
1,496 Points

Incorrect cost for Double Trouble

In the video, Double Trouble sells for 9.50, and has a cost of 4.50. However, the cost of two sandwiches(1.25*2=2.50) and two sodas (.25*2=50) is $3.00. The cost for each item is correct, but the example in the video is incorrect and it might be a bit confusing.

I get a profit of 850.00 if I used the correct values for sandwich cost and soda cost.

2 Answers

Ibrahim Al-Khalidi
Ibrahim Al-Khalidi
414 Points

its only examples no one cares how much is the profit actually we care about the code :)

but its amazing you could spot that welldone :)

Daniel Kokin
Daniel Kokin
1,496 Points

Thank you, Ibrahim. That means a lot to me. I actually took a break from learning Obj C, but I'm kicking myself every day for quitting. I really need to start again.