Student Tasks/Solutions
Tasks
Student Task #1: Return Values Task 1
Task 1 Challenge: Return Values Task 1 Challenge
Task 2 Challenge: Return Values Task 2 Challenge
Task 3: Solutions will vary
Reflection
- What needs to be added to a function so that it will return a value?
- A Return block
- If a function returns a value in one case, does it need to return a value in all cases?
- No functions don't have to return a value.
- But if a function does have a Return block, then it will always return a value.
- What happens if you call a function with a return value without storing or using the returned value?
- Nothing happens
- Where might return values be used in your previous projects?
- Decisions, Change by Five programs
Homework
Complete the problem set at Problem Set: Returns:
- Problem 1 Current Season - Current Season
- Problem 2 Favorite Food - Favorite Food
- Problem 3 Create Enemy - Create Enemy
- Problem 4 Brick Builder - Brick Builder
- Problem 5 Conversions - Conversions