CDAT - Computer Science‎ > ‎CSP‎ > ‎CSP News‎ > ‎

27 OCT

posted Oct 26, 2016, 11:54 AM by Tom Culpepper   [ updated Oct 27, 2016, 3:12 AM ]
Check out this code.  Make a prediction about what would be printed to the screen in each case.

--First
for x = 1, 10, 1 do
  print("x is ".. x)
end

--Second
for i = 3, 17, 4 do 
  print (i .. " is the value of i.")
end

--Third
for j = 20, 0, -7 do 
  print(j)
end


Today we'll get some work done on the tower-building project.  

The final product will be due on 1 NOV.  Here's a little break-down of the time you have left.
 27 OCT (today)     31 OCT 1 NOV (due at the end of class) 3 NOV
 ~90 minutes     ~50 minutes ~60 minutes (other stuff) happening in class on this day 0 minutes
 You should be 90% done with your code at this point. Putting the finishing touches on things.  Starting on the video. Edit your video and turn it in. LATE!


Next week expect a quiz and test on what we've learned about programming so far.

Comments