mullender / codepath-ios

codepath-ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ios Tipper

This is an iOS demo application for calculating tips

Time spent: 8 hours spent in total

Completed:

  • Required: Implement view controllers for main and settings screens
  • Required: Add readme
  • Required: Add screen capture
  • Optional: Extract tipping logic into separate class
  • Optional: Unit tests for tipping logic

Features:

  • Allow entry of total bill amount
  • Allow separate entry of tax amount
  • No tip on tax: calculate tip amount bases on total, excluding taxes
  • Settings enable:
  • Exact tipping, penny accurate tip. e.g. when using a credit card
  • Cash tipping, tip amount rounded to whole number. e.g. when leaving a cash tip
  • Cash payment, grand total rounded to whole number. e.g. when paying everything cash

Walkthrough of the features:

Note the rounding of the different amounts.

About

codepath-ios


Languages

Language:Swift 100.0%