Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Assignment 5
Old
cgowin
Junior Member
 
Status: Offline
Posts: 8
Join Date: Aug 2013
Location: Dallas
Default Assignment 5 - 10-05-2013, 05:39 PM

I found assignment 5 to be pretty easy over all , with the if/else statements i couldn't find anything else to put in the final else statement but everything else went smooth.
   
Reply With Quote
Old
rmdurden
Junior Member
 
Status: Offline
Posts: 12
Join Date: Aug 2013
Location: Texas
Default 10-06-2013, 03:51 PM

The best thing to do is to put the second if/else statement where the original else statement would normally be. Like this:
If x < y do this
Else:
If x > y do this
Else do this
That way you end up with three possible outcomes instead of four and you don't have to worry about having empty spaces.
   
Reply With Quote
Reply

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