Assignment #1: Celebrity File
Task: In a new playground (yourname_celebrity) create a program that holds the latest data about yourself or your favourite celebrity.
- What information do you and other fans want to know?
- Make a list of 5 to 10 information items you’ll track in your program.
- Following what you learned from the playground practice activities in lesson 1, turn the list into a list of data names.
- For each item on the list of names, write let in front of the item name to indicate that it’s a constant.
- For each constant, include a value
Here are a couple of examples of how the list might look:
let name = "Mrs. Pop Star"
let birthDate = "January 1, 1991" let homeTown = "Nashville" let firstHitSong = "Party Tonight" let name = "Mr. Athlete let heightInFeet = 6.4 let rookieYear = 1997 let nickname = "Sparky” |
Within your program:
- Be sure to include comments
- Be sure that constant names are specific and easily interpretted