<div dir="ltr">I am using the <u>Alice in Action</u> textbook written by Joel Adams.  In Chapter 4 Flow Control, there is a programming project that my class and I just cannot figure out.  I have the solution file, but we are not sure how it was coded.  Does anyone have any suggestions?<div><br></div><div>Here is the directions from the textbook:</div><div><br></div><div>Programming Project 4.10 </div><div>From the Alice Gallery, choose a clock class that has subparts for the minute and hour hands.</div><div><br></div><div>a. Build a clock method named <b>run ( )</b> that moves the minute and hour hands realistically (that is, each time the minute hand compeltes a rotation, the hour hand should advance 1 hour). Define a parameter named <b>speedUp</b> that controls the duration of the hand movements, such that<b> run (0) </b>will make the clock run at normal speed, <b>run (60)</b> will make the clock run at 60 times its normal speed, run<b> (3600) </b>will make the clock run at 3600 its normal speed, and so on.</div><div><br></div><div>b. Build a clock method <b>setTime(h, m)</b> that sets the clock's time to <b>h:m</b> (<b>m</b> minutes after hour <b>h</b>).</div><div><br></div><div>c. Build three functions for your clock: one that returns its current time (as a <b>String</b>), one that returns its current hours value (as a <b>Number</b>), and one that returns its current minutes value (as a <b>Number</b>).</div><div><br></div><div>d. Build a clock method <b>setAlarm (h, m) </b>that lets you set the clock's alarm to <b>h:m.</b>  Then modify your <b>run( ) </b>method so that when the clock's current time is equal to <b>m</b> minutes after hour <b>h</b>, the clock plays a sound.</div><div><br></div><div>Any ideas or suggestions would be appreciated.  Thanks so much!</div><div><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="4">Denise Nichols</font><div><font color="#38761d"><b>Computer Teacher</b></font></div><div><font color="#38761d"><b>York Catholic High School</b></font></div><div><font color="#38761d"><b><a href="mailto:dnichols@yorkcatholic.org" target="_blank">dnichols@yorkcatholic.org</a></b></font></div><font color="#38761d"><b>717-846-8871</b></font></div></div></div></div></div></div></div>
</div></div>