CEL - Introduction to Celebrity (Lesson)
Introduction to Celebrity
Introduction
Being able to categorize items allows for easier searching and the ability to find related items even if you’re not sure what it is you’re looking for. Structure and organization can be found everywhere, from biological specimens to the videos available on streaming services. For computer programs, being able to take advantage of relationships means the potential for less programming time and easier maintenance and enhancement of existing programs.
Introduction to Celebrity
In this lab you'll be introduced to and play the game Celebrity. Then you'll brainstorm different design options for creating a computer version of the game, including the Game class which contains a play method.
Grab a couple of friends or your family to play a round of Celebrity. Playing the game will help you brainstorm how it can be designed on the computer. Ideally, you want to have a minimum of 4 people to play the game.
- On small scraps of paper, have each player write down the names of five celebrities. (One name on each scrap of paper.)
- Fold each paper and put the folded papers into a container.
- Break into teams of two (or more) people. These are teams who will be competing in the game.
- Play a round of Celebrity: On each team one person is the designated reader and the other(s) the guesser. Team 1 will go first; they have one minute. The reader picks a paper at random and can say anything but the celebrity’s name to get the guesser to say the name of the celebrity. If the guesser gets the name right a point is earned, and another paper is selected. If the reader reveals any part of the celebrity’s name or passes, a point is lost, and another paper is selected. This continues until the minute is up. The papers are not added back to the pool.
- At this point it’s another team’s turn, and the process is repeated with a new reader and guesser. Each team takes turns this way until all the papers have been used. The team with the highest total number of correct guesses wins.
Once you are done, record the answers to the following questions on a sheet of paper. You will need the answers to complete the Lab Check Quiz.
- Assuming you were creating your own program from scratch to play Celebrity, brainstorm which classes might be used. Make sure to include a class that keeps track of overall game information.
- Remember instance variables in a class represent information associated with an object (think nouns). Based on your experience playing the game of Celebrity, list what information might be needed in the Game class. This list will be improved upon in a later activity.
- Write up a list of behaviors that might be needed for the Game class. What are the things the Game class must do? An example behavior would be to play a game, or update a team’s score when the guesser correctly names the celebrity.
- Looking at question 3, which behaviors might you make into methods? Why might you make that behavior a method?
- Assuming we would like to use a play method to organize and call other methods in the Game class, describe the play method. Because it has not yet been implemented, use pseudocode, a list, or whatever best outlines what the play method described above should do.
Lab materials provided by the College Board.
Check Your Understanding
Record the answer to the following question on a sheet of paper. You will need the answer to complete the Lab Check Quiz.
6. Pick a real-world object and identify the information and behaviors associated with it. Knowing what you do about primitive data, would you consider any of the information needed for the object to also be an object?
IMAGES CREATED BY GAVS