rwhg

09-23-2010, 10:30 AM

Here is an algorithm for a problem involving simple decisions and variable assignment that I am using with a grade 11 high school Computer Science class:

Algorithms Practice - Canadian Calorie Counting (http://mrgordon.info/alice3/Algorithms-Practice-Canadian-Calorie-Counting.pdf)

Here, using the current Alice 3 beta, is my partial implementation of this algorithm (does the "burger choice" only):

Canadian Calorie Counting Problem - Alice 3 Implementation (http://mrgordon.info/alice3/SimpleDecisionsAndVariables.a3p)

My problem is that the assignment statements for totalCalories inside the "if" control structures do not seem to be working.

Am I missing something obvious -- or is this a bug in the current beta of Alice 3? I am using 3.0.0.2.9 on Mac OS X 10.6.4.

Please help / take a look if you can -- I know Alice 3 is being used at CMU -- I'd hoped to use it this semester with my CS classes.

Thanks in advance for anyone's time. All the best! Alice 3, in overall sense, is looking great!

Algorithms Practice - Canadian Calorie Counting (http://mrgordon.info/alice3/Algorithms-Practice-Canadian-Calorie-Counting.pdf)

Here, using the current Alice 3 beta, is my partial implementation of this algorithm (does the "burger choice" only):

Canadian Calorie Counting Problem - Alice 3 Implementation (http://mrgordon.info/alice3/SimpleDecisionsAndVariables.a3p)

My problem is that the assignment statements for totalCalories inside the "if" control structures do not seem to be working.

Am I missing something obvious -- or is this a bug in the current beta of Alice 3? I am using 3.0.0.2.9 on Mac OS X 10.6.4.

Please help / take a look if you can -- I know Alice 3 is being used at CMU -- I'd hoped to use it this semester with my CS classes.

Thanks in advance for anyone's time. All the best! Alice 3, in overall sense, is looking great!