Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Chapter 3 & 4 help (http://www.alice.org/community/showthread.php?t=4857)

 samtcuhhz 08-10-2010 05:45 PM

Chapter 3 & 4 help

iv been stuck with these couple projects i got and i need help, very urgent
3.4 Einstiens formula
3.6 Famer in the dell
4.1 Hop
4.6 averaging
4.10 clock
if any one can help and reply to this post id apreciate it, im just stuck please help me out, i dnt really have the book so im kinda clueless on wt to do

 DensetsuNoKaboom 08-10-2010 05:47 PM

Can you get the book somewhere?

 dhilly06 09-30-2010 02:15 PM

also stuck on 4.10

a. build a clock method named run() that moves the min and hr hand realistically ( each time the min hand completes rotation hr hand moves an hr). define a parameter named speedUp that controls the durations of the hand movements, such that run(0) will make the clock run at normal speed, run (60) will make the clock run at 60 times its normal speed, run (3600) will make the clock run 3600 times its normal speed, and so on.

b. build a clock method setTime (h, m) that sets the clocks time to h:m (m mins after hour h).

c. Build three functions for your clock: one that returns its current time (as a string) one that returns its current hrs value (as a number), and one that returns its current mis value (as a Number).

 All times are GMT -5. The time now is 07:42 AM.