Difference between revisions of "MPAA calculator assignment"
From WLCS
(New page: '''Objective:''' * You will create a program that prompts the user for his/her age and the rating for the movie he/she wishes to see. Your program will then display whether or not they ca...) |
|||
| Line 6: | Line 6: | ||
'''Directions:''' | '''Directions:''' | ||
| + | # Prompt the user for his/her age | ||
| + | # Use if-statements to check his/her age and print out which ratings they can see | ||
| + | #* G: General Audiences (any age) | ||
| + | #* PG: Parental Guidance Suggested (any age) | ||
| + | #* PG-13: Parents Strongly Cautioned (ages 13+, unless accompanied by a parent) | ||
| + | #* R: Restricted (ages 17+, unless accompanied by a parent) | ||
| + | #* NC-17: No one 17 or Under Admitted (17+) | ||
| + | |||
| + | Example: | ||
Revision as of 08:26, 9 October 2009
Objective:
- You will create a program that prompts the user for his/her age and the rating for the movie he/she wishes to see. Your program will then display whether or not they can watch the movie.
Resources:
Directions:
- Prompt the user for his/her age
- Use if-statements to check his/her age and print out which ratings they can see
- G: General Audiences (any age)
- PG: Parental Guidance Suggested (any age)
- PG-13: Parents Strongly Cautioned (ages 13+, unless accompanied by a parent)
- R: Restricted (ages 17+, unless accompanied by a parent)
- NC-17: No one 17 or Under Admitted (17+)
Example: