Welcome! Log In Create A New Profile


error in assignment 2

Posted by 33949875 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
error in assignment 2
October 01, 2007 02:32AM
In question 1 of assignment 2 it looks as if the first while loop should have a || and not && in its logical expression for the function to operate correctly ????
Re: error in assignment 2
October 02, 2007 07:45AM
I don't think so. I did not use while loops at all in my answer of question 1, but having a quick glance at the model answer, it seems ok with &&. As soon as either of the 2 lists are empty the 1st while is exited, and the program will move onto the next 2 while loops - this will pick up the possibility that 1 or the lists was longer than the other.
Re: error in assignment 2
October 02, 2007 09:12AM
Thats correct. There is no error.
Sorry, only registered users may post in this forum.

Click here to login