EDIT: Fixed, removed the “singSongFor(OneFewer);” line and ran the program, then pasted it back in again and ran the program again and it worked, I have no idea why that fixed it as the code is exactly the same as it was… If someone can explain why that fixed it I would be grateful!
Hi, I’m using Xcode 6 beta (not sure if that’s a problem) and I’ve just started Objective-C.
I cannot find a single mistake in my program, I even tried directly copying and pasting from the book and it still does the same thing! It recycles four bottles but there is only one on the wall.
Code:
Output:
I will not move onto the next stage until I understand what’s wrong, I can only assume it’s because I’m using a beta of Xcode.
Also, something REALLY confused me with the Turkey Timer:
So the answer to the necessary minutes is 15 + 15 * the number called “pounds”, which is unknown.
The program is never told the value of “pounds”, although it is 9. Which is also the value of turkeyweight.
there is a line of code at the bottom which says "showCookTimeForTurkey(TurkeyWeight), does this somehow replace pounds with turkeyweight? I don’t remember reading how this works in the book, what page is it on?
Any help is much appreciated!