Alice Community Boolean expressions

 Boolean expressions
 bopgaard Junior Member   Status: Offline Posts: 5 Join Date: May 2012 Boolean expressions - 05-16-2012, 10:06 PM Hello all, I am taking a class in Alice and currently am focusing on Boolean expressions. I was curious to see if anyone had some experience with them and could point me in the right direction to solving the following problem. I AM REALLY LOST. Years that are evenly divisible by four years are leap years, unless they are evenly divisible by 100, in which they are not leap years, unless they are also evenly divisible by 400, in which case they are leap years. Write a single Boolean expression that can by used to determine if a year is a leap year.
 Mr Kidnapper Senior Member   Status: Offline Posts: 442 Join Date: Feb 2011 05-17-2012, 01:18 AM Hint: Evenly Divisible should check for remainders of 0. Try IEEE Remainder inside the world's functions to find if a number is evenly divisible by another. As for boolean statements, Alice makes it pretty clear what each of them do.

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops     Alice Player and VR General Discussion     Questions and Comments     The Lounge