1/26
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Every Jeroo program must have exactly one
main method
main method
describes how to use one or more Jeroos to solve a specific problem
Everything that appears between the braces should be indented
2 or 3 spaces.
The first part of the main method must be used to
declare and instantiate all the Jeroos that will be used by the program
declaration portion
indicates that the programmer plans to use a Jeroo to help solve the problem
instantiation portion
a request that the Jeroo object be created
The programmer must provide an _______ for the Jeroo object
identifier
The crucial part of the instantiation is the
constructor
action statement
a request that a Jeroo perform a specific task
behavior
an action that an object can take or a task that it can perform in response to a request from an external source
method
collection of statements that are written in some programming language to describe a specific behavior
A Jeroo method contains
the source code that describes what an arbitrary Jeroo needs to do to carry out the corresponding behavior
precondition
something that is assumed to be true before the method is invoked
postcondition
something that is true after the method has been executed
control structure
a feature of a programming language that determines the order in which statements will be executed
Boolean expression
any expression that can be either true or false
repetition structure
allows a group of statements to be executed several times in succession
selection structure
defines alternate paths through the source code
There are two major parts to every repetition structure,
the body and the controlling condition
body of the loop.
The block of statements that can be executed repeatedly
trip (or iteration)
Each time that the statements in the body are executed
controlling condition
a condition that is checked to determine whether to make a trip through the body or terminate the loop
pretest loop
the controlling condition is always checked before the body can be executed for the first time
posttest loop
the controlling condition is not checked until after the first trip through the body
while loop
a true condition leads to a trip through the body, but a false condition terminates the loop
until loop
a true condition terminates the loop, but a false condition leads to a trip through the body
Boolean expression
any expression that is either true or false