Need help with calculating averages.
All I can find to help guide me is old stuff from alice 2, and it isn't that helpful.

[QUOTE=raccoons;57979]All I can find to help guide me is old stuff from alice 2, and it isn't that helpful.[/QUOTE]
I'm sort of a novice when it comes to Alice 3, although for something like calculating averages, I don't imagine it would be massively different from Alice 2. You would just need a way to get multiple values, add those values together, evaluate how many values there are, and divide the sum of the values by the number of values. Lists are helpful for something like this, although I don't even know if lists exist in Alice 3. :rolleyes: If you're having trouble with any of these steps, say so but [I]give plenty of information.[/I] This is a general rule of thumb if you're looking for help on the forums. 
[QUOTE=sometimes618;57980]I'm sort of a novice when it comes to Alice 3, although for something like calculating averages, I don't imagine it would be massively different from Alice 2. You would just need a way to get multiple values, add those values together, evaluate how many values there are, and divide the sum of the values by the number of values. Lists are helpful for something like this, although I don't even know if lists exist in Alice 3. :rolleyes:
If you're having trouble with any of these steps, say so but [I]give plenty of information.[/I] This is a general rule of thumb if you're looking for help on the forums.[/QUOTE] Would showing the tutorial I'm using maybe help, so you can see what method I'm trying to apply to Alice 3? I've found so far that things seem to be much more straightforward in Alice 2 from what I see, but I have no real experiences with it to confirm this. So far I've been trying to use a function to calculate averages, but some of the stuff doesn't work the same way (I think, again, no real experience with Alice 2), and instead of it being simple, I'm just weaving big, messy lines of code that do absolutely nothing. Also, yes, lists exist as far as I know, judging on screenshots I've seen and the like. Personally, I don't really know all that much of them, though. :$ 
So...after banging stuff into Alice 3, I think I have something.
You'll need two variables, one for the number of numbers and another for the sum. At the beginning, "sum" should be 0 and "number" should be an integer that is asked from a user. For "number" times, the sum should be the previous sum added to a decimal that the user puts in. After that, divide the sum by "number" and you should get the average. I don't know how to turn that into a string for the user to see, though, but again I'm not too good with Alice 3. 
[QUOTE=raccoons;57979]All I can find to help guide me is old stuff from alice 2, and it isn't that helpful.[/QUOTE]
In general you need to input entries and divide their sum by the number of entries that were given. That means you need some way to tell your method when you have entered the last value. I chose to make the last value a negative number and not to count it in the sum or count of entries. After the last value is entered you must display the results of the sum/count. This is the only step that I needed an object for and I chose the "text mode" object, although you could use something with a "say" method. Creating variables in Alice 3 is a little different, you click on variables in the code area and then fill out the dialog that pops up. I needed a Boolean to control the while loop but the others can all be floats. Remember that, just as with many things in Alice 2, you need to initially use a dummy value and then, after the statement is in the method/function go back and fill in the correct value for your program. If you need more help please provide a sample of what you have to date. Mark 
Need help with calculating averages
"Average" is utilized as a part of regular day to day existence to portray where the center number of an [URL="https://gunsafely.com/"]informational[/URL] index is. It's the regular number you would hope to discover in a progression of numbers. In measurements, the normal is known as the "number juggling mean," generally simply abbreviated to the mean. Both the normal and the mean utilize a similar recipe.

All times are GMT 5. The time now is 08:07 AM. 
Copyright ©2020, Carnegie Mellon University
Alice 2.x © 19992012, Alice 3.x © 20082012, Carnegie Mellon University. All rights reserved.