Alice Community  

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

Reply
 
Thread Tools Display Modes
Project 4.5 Page 139
Old
golf1010
Junior Member
 
Status: Offline
Posts: 1
Join Date: Apr 2012
Default Project 4.5 Page 139 - 04-05-2012, 09:16 PM

Build a world containing a person who can calculate the average of a sequence of numbers in his or her head. Have the person ask the user how many numbers are in the sequence, and then display a NumberDialog that many times to get the numbers from the user. When all the numbers have been entered, have the person "say" the average of those numbers.

I am a severely confused on this assignment. I am learning flow control statements for the first time and any help would be appreciated. How am I going to get the numbers to add up? What type of variables are going to be needed?

I greatly appreciate any help. I am struggling on this a lot.
   
Reply With Quote
Old
Muki
Junior Member
 
Status: Offline
Posts: 5
Join Date: Mar 2012
Default 04-06-2012, 01:05 AM

I am wondering this, too..How do you assign user input to a variable, so that you can use that input later on for comparisons?
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.