Alice Community  

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Smart Cow
Posts: n/a
Default Smart Cow - 04-05-2011, 03:44 PM

I have to do an assignment that makes a cow pick the highest number out of a user designated sequence of numbers: The cow asks how many numbers are in the sequence, the user enters a number; then the cow asks for the numbers. He is supposed to tell you which one is the highest. I am supposed to use three variables: numberOfItems, highestNumber, and currentNumber; also a for loop with an embedded if statement...I can get the cow to go through the script and ask for the sequence and the numbers but not to tell which number is the please??
Reply With Quote

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