Challenge: Safe Landing

Your investors have pointed out that rockets are expensive and letting them plummet to the ground does not enhance reusability. Enhance the Rocket class to deploy a parachute in order to slow its descent once it is descending (i.e., shows negative velocity on the Y axis) and reaches a certain altitude.

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.