Title: Integer vs. Integer Array Categorizing Grid
Author: Tammy VanDeGrift and Kate Deibel
Date: October 28, 2003
Technique: Categorizing Grid
Before Class Preparation Time: LOW
Class Completion Time: LOW
In-Class Analysis Time: LOW
Out-Of-Class Analysis Time: LOW
Assessment Goals:
- Develop analytic skills
- Develop ability to draw reasonable inferences from observations
- Improve memory skills
- Develop appropriate study skills, strategies, and habits
- Learn terms and facts of this subject
- Learn concepts and theories of this subject
Topics:
- Integers
- Arrays
- Design
- Variables
Purpose:
This activity allows instructors to see if students are aware of when it is best to use a single integer or an array of integers.
Activity:
This activity will give you the opportunity to decide what sort of variable you would use when programming. Place each item in the Values box under the variable type that would best represent it.
|
Values
|
- The total rainfall for the past month
- The daily rainfall for the past month
- The number of jobs completed by Bill and Debbie
- The position of the white king on a chessboard
- The number of days till the final exam
- The position of all the pieces in a chess game
- The number of days in each month of they year
- A collection of homework grades
- The total points posssible on all homeworks
- A chessboard
|
Solution:
The following are suggestions, but several of the items in this activity are meant to encourage discussion.
- INT: The total rainfall for the past month
- ARRAY: The daily rainfall for the past month
- INT: The number of jobs completed by Bill and Debbie
- INT: The position of the white king on a chessboard
- INT: The number of days till the final exam
- ARRAY: The position of all the pieces in a chess game
- ARRAY: The number of days in each month of they year
- ARRAY: A collection of homework grades
- INT: The total points posssible on all homeworks
- ARRAY: A chessboard
Instructor Responses:
- Lecture
- Next Day Summary
- Class Discussion
- Homework
Response Analysis:
Run through the grids and mark incorrect or missing entries. Identify the most common errors as well as any patterns that could explain student confusion. Reflect upon these errors and report them back to the class as you see fit.
Variant Uses of Activity:
- For each item, have the students also give a proper, well-named variable declaration in addition to the categorizing grid.
- Have students work in groups to complete this activity. The instructor may want to circulate throughout the groups to ensure that each group is making progress. After the groups have completed their lists, the instructor can ask for votes on each item. It is important that the instructor explains why each data structure is appropriate for the task.
- Have students work individually on their lists and then form groups of 4-5 people to discuss their individual lists with other members of the group.
Device-Enabled: Has Been Enabled
Related Topics:
- Types
- Doubles
- Design
- Structs
- Classes
- Functions