Alice Community

Alice Community (
-   How do I...? (
-   -   Chapter 3 & 4 help (

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 06:13 AM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.