Cooperative Learning Question
Subject: Structured programming
On a piece of paper, write your NAME, SECTION and DATE.
- What does "deterministic" mean?
ANSWER: the simplest answer "give the same instructions and
same data, you get the same results". There are longer answers
like the one on the slide about "knowing the state of the variables in a
situation and the rules and being able to predict future states".
- Write a statement which generates an integer between
5 and 10, inclusive. It stores it in a variable called my_rand.
ANSWER: two answers, either one accepted
my_rand = randint(5, 10)
my_rand = randrange(5, 11)
Talk to your neighbor about your answer.
Turn in for attendance.