a simple tip calculator for iOS devices