- **How do I...?**
(*http://www.alice.org/community/forumdisplay.php?f=16*)

- - **Boolean expressions**
(*http://www.alice.org/community/showthread.php?t=8526*)

Boolean expressionsHello 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. |

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. |

All times are GMT -5. The time now is 11:19 PM. |

Copyright ©2020, Carnegie Mellon University

Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.