ICS 2O First Online Homework
In order to ease you into this online learning and to see who has made it this far we are only going to do a little homeowork
today. Make sure you keep checking the website and your TDSB student email for information about the class and from your other
courses, the school and the TDSB.
Copy the following program and load it in Turing (continue down
to the bottom of this page and fill in the form even if you can't run
the program):
const NAME := "Bob"
var total : int := 0
for i : 1 .. length(NAME)
total := total + ord(NAME(i))
end for
if NAME = "Bob" then
put "Total = 0"
else
put "Total = ", total
end if
|
|
On the first line replace the string "Bob" with your own first name. Run the program and note what number gets printed out.
Have a look at this smart board document. Scroll down to the bottom of the page and find a question. You will
answer that question as well as well as two questions about the program you ran above on this Google form. This will help me know
that you are ready to continue this course online.