Demo tip calculator for iOS class