Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Chapter 3 & 4 help
Old
samtcuhhz
Guest
 
Status:
Posts: n/a
Default Chapter 3 & 4 help - 08-10-2010, 05:45 PM

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
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 08-10-2010, 05:47 PM

Can you get the book somewhere?


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
also stuck on 4.10
Old
dhilly06
Guest
 
Status:
Posts: n/a
Default also stuck on 4.10 - 09-30-2010, 02:15 PM

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).
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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