|
Karel 7 Karel 7a Karel 18
| |
TaxiBot: Numeric Variables
| Unit 2 |
Activity 6 |
Time:
160
minutes
|
Description
Students are introduced to numeric and boolean
variables, and String objects. Some
manipulation is done using the numeric data.
Strand(s) & Learning
Expectations
Strand(s):
A. Programming Concepts
and Skills
B. Software Development
C. Computer Environments and Systems
D. Topics
in Computer Science
|
Overall Expectations
|
| A1. |
demonstrate the ability to use different data types, including
one-dimensional arrays, in computer programs; |
| A2. |
demonstrate the ability to use control structures and simple
algorithms in computer programs; |
| A3. |
demonstrate the ability to use subprograms within computer programs; |
| A4. |
use proper code maintenance techniques and conventions when creating
computer programs. |
| B1. |
use a variety of problem-solving strategies to solve different types
of problems independently and as part of a team; |
| B2. |
design software solutions to meet a variety of challenges; |
| B3. |
design algorithms according to specifications; |
|
Specific Expectations
|
| A1.1 |
use constants and variables, including integers, floating
points, strings, and Boolean values, correctly in computer
programs; |
| A1.3 |
use assignment statements correctly with both arithmetic and
string expressions in computer programs; |
| A1.4 |
demonstrate the ability to use Boolean operators (e.g., AND,
OR, NOT), comparison operators (i.e., equal to, not equal to,
greater than, less than, greater than or equal to, less than or
equal to), arithmetic operators (e.g., addition, subtraction,
multiplication, division, exponentiation, parentheses), and
order of operations correctly in computer programs; |
| A2.1 |
write programs that incorporate user input, processing, and
screen output; |
| A2.2 |
use sequence, selection, and repetition control structures
to create programming solutions; |
| A3.1 |
demonstrate the ability to use existing subprograms (e.g.,
random number generator, substring, absolute value) within
computer programs; |
| A3.2 |
write subprograms (e.g., functions, procedures) that use
parameter passing and appropriate variable scope (e.g., local,
global), to perform tasks within programs. |
| A4.1 |
demonstrate the ability to identify and correct syntax,
logic, and run-time errors in computer programs; |
| A4.2 |
use workplace and professional conventions (e.g., naming,
indenting, commenting) correctly to write programs and internal
documentation; |
| A4.3 |
demonstrate the ability to interpret error messages
displayed by programming tools (e.g., compiler, debugging tool),
at different times during the software development process
(e.g., writing, compilation, testing); |
| A4.4 |
use a tracing technique to understand program flow and to
identify and correct logic and run-time errors in computer
programs; |
| A4.5 |
demonstrate the ability to validate a program using a full
range of test cases. |
| B1.1 |
use various problem-solving strategies (e.g., stepwise
refinement, divide and conquer, working backwards, examples,
extreme cases, tables and charts, trial and error) when solving
different types of problems; |
| B1.2 |
demonstrate the ability to solve problems independently and
as part of a team; |
| B1.3 |
use the input-process-output model to solve problems. |
| B2.1 |
design programs from a program template or skeleton (e.g.,
teacher-supplied skeleton, Help facility code snippet); |
| B2.2 |
use appropriate vocabulary and mode of expression (i.e.,
written, oral, diagrammatic) to describe alternative program
designs, and to explain the structure of a program; |
| B2.3 |
apply the principle of modularity to design reusable code
(e.g., subprograms, classes) in computer programs; |
| B2.4 |
represent the structure and components of a program using
industry-standard programming tools (e.g., structure chart, flow
chart, UML [Unified Modeling Language], data flow diagram,
pseudocode); |
| B3.1 |
design simple algorithms (e.g., add data to a sorted array,
delete a datum from the middle of an array) according to
specifications; |
| B3.2 |
solve common problems (e.g., calculation of hypotenuse,
determination of primes, calculation of area and circumference)
by applying mathematical equations or formulas in an algorithm; |
| |
|
Prior Knowledge &
Skills
Students:
-
have used a programming environment;
-
write simple programs which include input, output, and
variable manipulation;
-
have been introduced to the problem solving process;
-
understand the difference between the programmer and the
user;
-
have used selection structures;
-
have used looping structures;
Planning Notes
- this activity could be introduced at an earlier point; before selection
and looping;
Teaching/Learning
Strategies
-
examine
issue of storing numeric information
-
use
powerpoint for TaxiBot to demonstrate the building of the structures.
-
Students will
expand on the ideas usined in TaxiBot by using
Karel 18 (Appendix 2.5.1) and
Karel 7 (Appendix 2.5.2) and
Karel 7a (Appendix 2.5.3).
Assessment & Evaluation of Student Learning
As Learning
Students will be given time to:
- reflect on their progress/
understanding/areas of concern
based on teacher/student/peer
suggestions (e.g. after test take up)
- journalize their reflections
- reflect on the work of others
For Learning
The teacher will
- observe student progress/performance
- ask questions based on student work
- check homework correctness/completion when appropriate
- review formative quiz results
Of Learning
The teacher and students gather assessment information
based on specific expectations outlined for this activity including:
-
a formative assessment of the assigned work in the form
of roving conferences,
-
a summative assessment in the
form of a small programming project, and
-
a summative assessment in the form of a test or quiz.
Accommodations
The following are ways in
which the activity can be modified to accommodate students' individual needs:
-
provide pseudocode for some problems;
-
use pair programming techniques while students are
writing their initial programs (see Resources);
-
investigate syntax of other programming languages.
Resources
- Hume, J.N. Patterson and Stephenson, Christine. Introduction to Programming in
Java. Toronto, Ontario, Canada. Holt Software Associates Inc. 2000.
ISBN 0-921598-39-4
- Lambert, Kenneth A. and Osborne, Martin. Java Complete Course in Programming & Problem
Solving. Cincinnati, Ohio, USA. South-Western Educational Publishing.
2000.
ISBN 0-538-68707-X
- Arnow, David M. and Weiss, Gerald. |Introduction to Programming Using Java: An Object Oriented
Approach. Don Mills, Ontario. Addison-Wesley. 2000.
ISBN 0-201-61272-0
- Deitel, H.M. and Deitel P.J. Java: How to Program. 3rd ed. Upper Saddle River, New
Jersey. Prentice Hall.1999.
ISBN 0-13-012507-5
- Eckel Bruce. Thinking in Java. 2nd ed. Upper Saddle River, New Jersey,
USA. Prentice-Hall. 2000.
ISBN 0-13-027363-5 available for download from http://www.mindview.net/Books/TIJ/ in various formats
- Eck, David J. Introduction to Programming Using Java 3.1
ed. 2001. Open Publication License. 2000. <http://math.hws.edu/javanotes>
- Stein, Lynn Andrea. Interactive Programming in Java. Morgan Kaufmann
Publishers. 1999.
ISBN 1-55860-557-6 Available for download from http://www.mkp.com/ipij/
- Roedy Green. How to write unmaintainable code. http://mindprod.com/unmain.html
|