Created
March 13, 2015 01:21
-
-
Save NevadaKiran/38e3ad5270e8cd7759b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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