Alice Community  

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

Reply
 
Thread Tools Display Modes
Calculate Average...
Old
sinder3lla58
Junior Member
 
Status: Offline
Posts: 3
Join Date: Sep 2011
Default Calculate Average... - 09-28-2011, 12:18 PM

I have to do project 4.6 in the book Alice in Action with Java. Its to make a world with a person who can calculate an average and every time the user enters a number, the person says it back to the user. During this, the person has to calculate the average of all the numbers and then the user enters a "special number" (in my case, its 58) and then the loop stops and gives the answer.

stupid.jpg

The attachment is what I have so far... But it won't allow me to put nextNumber in for what the sheriff is saying. I also just don't know where to go from here or if my calculating part is even close to correct. :/

Thanks.
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 10-03-2011, 10:08 AM

Lols, the pics name is "stupid.jpg"

but, i can't see it, too fuzzy, you may want to upload your world


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Reply

Tags
average, calculate, homework


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.