📄 instructor note for exercise 5 design documents.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<TITLE></TITLE>
</HEAD>
<BODY text="#000000" bgcolor="#ffffff">
<H3>
Instructor Note for Exercise 5 Design Documents</H3>
<P style="">Below is a list of the new items students should include in their Catfish English specs. That is, students should add these items to those already contained in the design document that is supplied with the exercise. Of course,
students should include the same or equivalent items in their Crocodile English
specs. </P>
<P style="">Packaged with this Instructor Note are two
examples of the kind of specs students might turn in. The files are Catfish.txt
and Crocodile.txt.</P>
<P style="">Note also, that some students might see
the need for two or more additional methods. See the note below in the section titled "Bonus methods." Packaged also with this Instructor Note are two specs that
describe two additional methods. The files are BonusCatfish.txt and
BonusCrocodile.txt.</P>
<P style=""> </P>
<HR>
<P style=""><STRONG></STRONG></P>
<P style=""><STRONG>Class
attributes</STRONG></P>
<P style=""><B>constant</B><B> attributes</B></P>
<UL>
<LI> A class constant attribute for the amount of energy a catfish
must expend to eat </LI>
<LI> A class constant attribute for the amount of energy a catfish
must expend to swim </LI>
<LI> A class constant attribute for the amount of energy a catfish
must expend to look for
food </LI>
<LI> A class constant attribute for the amount of energy a catfish
can gain from a full meal
</LI>
<LI> A class constant attribute for the
minimum amount of energy required by a catfish to stay alive</LI>
<LI> A class constant attribute for the
maximum amount of energy that can be stored by a catfish</LI>
</UL>
<P style=""><B>Behaviors</B></P>
<UL>
<LI> A method that allows a Catfish to
swim in the lake </LI>
<LI> A method that allows a Catfish to
eat an AlgaeColony </LI>
</UL>
<H5 style="">"Bonus methods":</H5>
<P style="">The Exercise’s list of the constant class attributes that
are
not provided may lead some students to decide that additional methods
are
required, for example.</P>
<UL>
<LI> A method that, for each time block,
increments the value of the instance variable attribute for the minimum
amount
of energy required by a catfish to stay alive in a time block.</LI>
<LI> A method that, for each time block,
increments the value of the instance variable attribute for the maximum
amount
of energy that can be stored by a catfish </LI>
</UL>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -