Name _
Period _
Karel J Robot
Chapter 6 HW
1. Write a new instruction named emptyBeeperBag. After a robot executes this instruction, its beeperbag should be empty.
2. Write a new instruction named goToOrigin that positions a robot on 1st Street and 1st Av
Karel J Robot
Review Sheet Chapters 5-6
Name:
Date: _ Per: _
1. List the 8 primitive predicates that can be used in an if clause:
2. In order for a new class (subclass) that you write to be able to use the 8 primitives above, the class
must have been deri
Name _
Period _
Karel J Robot
Chapter 6 HW
1. Write a new instruction named emptyBeeperBag. After a robot executes this instruction, its beeperbag should be empty.
public void emptyBeeperBag()
cfw_
while( anyBeepersInBeeperBag() )
cfw_
putBeeper();
2. W
Karel J Robot
Review Sheet Chapters 1-3
Name: _
Date: _ Per: _
1. In the robot world
1a) streets run which directions?
2b) avenues run which directions?
3c) streets are numbered:
4d) avenues are numbered:
5e) the three objects which can be placed are
2.
Karel J Robot
Review Sheet Chapters 5-6
Name:
Date: _ Per: _
1. List the 8 primitive predicates that can be used in an if clause:
2. In order for a new class (subclass) that you write to be able to use the 8 primitives above, the class
must have been deri
Karel J Robot
Review Sheet Chapters 1-3
Name: _
Date: _ Per: _
1. In the robot world
a) streets run which directions?
b) avenues run which directions?
c) streets are numbered:
d) avenues are numbered:
e) the three objects which can be placed are
2. What
Section 8.1 Part II LHopitals Rule revisited
LHopitals rule can be used to help solve certain indeterminate limits, specifically if you get _ or
_
LHopitals Rule:
f ( x)
lim
lim
x a g ( x)
xa
*You can use this process over and over again!
In other words,
Section 4.2 Part II Mean Value Theorem (& Antiderivatives)
Mean Value Theorem:
If
is continuous at every point of the closed interval [a, b] and differentiable at every point of its interior
f ( x)
(a, b), then there is at least one point c in (a, b) in w
Section 4.4 Modeling & Optimization
To optimize means to maximize or minimize a given concept.
In the problems from this section, you will be asked to optimize. To do this you will need to:
1) Write an _ that you want to optimize.
2) If your equation in s
Section 4.6 Related Rates
Keep in mind that a rate is a _ (with respect to _ ). Our most
common example would be velocity, which is the derivative of position with respect to time.
These are called related rates because we are going to write an equation t
The Basic Language Can Be Clumsy
To
make a robot turn right, we have
to send it 3 turnLeft messages
Chapter 3
In
Extending
the robot world there are 8 blocks
to the mile. To have a robot go ten
miles east, pick up a beeper, then
move ten miles north, w
Karel J Robot
Karel J (the Robot)
OOP approach to learning computer science
Its study involves development of the
ability to abstract the essential features of a
problem and its solution, to reason
effectively in the abstract plane, without
confusion by
. .lansssiupeﬁ; eigzwi
ﬂ ,
n
Amw
.JEU‘
aw,»
a
f v,
.1154 ‘ v £3.th V w
Em;
w
w,
n
_5a§i. m
.V as E W,
w W
3355 a;
g x $59 w,
w
m Ag}
55.
mam yaw A? 3% y nu. {zr‘iasw um ﬁring
a «xii: as i! , @431
jg % mm K a. Q
g Emmi; a .‘ﬁ‘iwgiﬂssgii.
Wk. M iv l .
3.5” i
RUM, if: at
, !
36:55.15. 73.xJle2tslﬁyWW ‘5
a m;
3% a E?
w A
3., r.
‘ a; g 3%} 3.
«Vs/es. him 55 w \1 a
[3:536 $3.? 3. i»:
5.
n.wa $43 An:
31.6%.“; gum»? ﬂ};
“9 £5
:552k ,
:§«W¢o x,
E; 3.5 xx yaw
9. We assume the sense of initial rotation is positive. Then, with 0 = +120 rad/s and = 0 (since
it stops at time t), our angular acceleration (deceleration) will be negative-valued: = 4.0
rad/s2.
(a) We apply Eq. 10-12 to obtain t.
0 t
t
(b) And Eq. 10
19. We assume the given rate of 1.2 103 m/y is the linear speed of the top; it is also possible to
interpret it as just the horizontal component of the linear speed but the difference between these
interpretations is arguably negligible. Thus, Eq. 10-18 l
Chapter 10
1. The problem asks us to assume vcom and are constant. For consistency of units, we write
b
vcom = 85 mi h
ft mi I
g FGH 5280
J = 7480 ft min .
60 min h K
Thus, with x = 60 ft , the time of flight is
t = x vcom = (60 ft) /(7480 ft/min) = 0.008
Relating the Linear and Angular Variables (H&R Chapter 10-5)
Angles are measured in radians
=
s
r
Where is angle in radians, s is arc length, r is radius
Conversion between radians and degrees (rad) =
180 (deg)
Angular Displacement
=
s
r
angular displacem