Skip to content

Instantly share code, notes, and snippets.

@jonathanbarton
Last active August 29, 2015 14:27
Show Gist options
  • Save jonathanbarton/1e020ace460c01304218 to your computer and use it in GitHub Desktop.
Save jonathanbarton/1e020ace460c01304218 to your computer and use it in GitHub Desktop.
mob_week2_assignment

#Week 2 Assignment

Definition of Done

  • All Acceptance Criteria met
  • Project runs and all items are functioning
  • Project solution pushed out to proper branch and pull request opened

Project Setup

  • From your GiorgioNatili/MOB-BOS-1 repository root folder, create a git branch with the following name format: week2-lastname (ex: week2-barton)
  • Create your solution inside a new folder in the Assessments_Submissions folder (ex: Assessments_Submissions/week2-barton)
  • Push your commited solution to the remote and open a Pull Request with the title format: 'week2 lastname submission'

Acceptance Criteria

  • TODO_1: Hook up a button in the inteface builder to a new function (to be written) in a view controller subclass. When that button is clicked, the function to be written must make a label say 'hello world!'
  • TODO_2: Modify the first input by making a connection from 'name' and 'age' textboxes dfined in interface builder to their class. They must look at the string entered in the textbox and print out "Hello {name}, you are {age} years old!"
  • TODO_3: Print "You can drink" below the above text if the user is above 21. If they are above 18, print "you can vote." If they are above 16, print "You can drive."
  • TODO_4: On a separate screen, place an input box and a sum text label. Add an 'add' button. Display the cumulatiev sum of all numbers added everytime the 'add' button is pressed.
  • TODO_5: On a separate screen, place an input box (text field) and an 'is even?' button. When the button is pressed, a message should be printed indicating whether the number is even.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment