Skip to content

Instantly share code, notes, and snippets.

@phlipper
Created March 12, 2015 23:06
Show Gist options
  • Save phlipper/af62d2683abf6b9fd594 to your computer and use it in GitHub Desktop.
Save phlipper/af62d2683abf6b9fd594 to your computer and use it in GitHub Desktop.
TECH601-00 Day 4 Warmup
# Alice:
# id: ALI
# name: Alice
# birth date: April 4, 1977
# age: 37
# job title: Data Analyst
# interests: Communications, Keeping Secrets
# trustworthy?: yes
# 1. convert the specification for `Alice` into code, like we did last class
# with the country data
# 2. use concatenation to create a message which reads:
# My name is _, and I work as a _.
# 3. output the previous message
# 4. use interpolation to output the following message, ending with a newline:
# I was born on _, and I will be _ years old on my next birthday.
# 5. if the person is trustworthy, output the following message:
# I have a total of _ interests, which include: _.
# otherwise, output the following message:
# This person cannot be trusted.
# 6. convert the following specification for `Bob` into code
#
# Bob:
# id: BOB
# name: Bob
# birth date: September 1, 1977
# age: 37
# job title: Software Engineer
# interests: Encryption, Constant Time Lookup, Quantum Computing
# trustworthy?: yes
# 7. perform steps 3 through 5 for Bob
# 8. convert the following specification for `Eve` into code
#
# Eve:
# id: EVE
# name: Eve
# birth date: September 17, 1969
# age: 45
# job title: Cracker
# interests: Intercepting Communications
# trustworthy?: no
# 9. perform steps 3 through 5 for Eve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment