Question Extra If 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #4 due Monday, 22 October (Mike O'Donnell)
Date: 2001, Oct 21
From: Mamun Tanveer <mamunt@uchicago.edu>

Hi, In the problem it says that our program should just contain a tiny bit of initialization before the while loop. Does this strictly mean just defining l, u and setting their initial values? I put in an extra statement handling the case X[n]<t if(X[n]<t) u=0; Is this not the right thing to do? Should the loop just handle all cases without any additional ifs? Thanks.

Mamun


Messages

1. Idea I think that should be handled at the end by Kristina Matesa, 2001, Oct 22
2. Feedback Keep initialization very simple by Mike O'Donnell, 2001, Oct 22

to: "Extra If"