Activity 1
During the last outcome you designed your own computational abstractions. If you haven't completed this outcome then complete it now before looking at this one.
Activity 2
What does evaluate mean?
Why should we evaluate our solutions?
Write down your thoughts.
Activity 3
When we evaluate a solution we look at how effective we have been and make judgments based on the evidence.
Key questions to get you started would be:
Take a look at your solutions from the last outcome and try to evaluate the effectiveness of your solutions. Use the prompts above to guide you.
Activity 4
Below is some Python code for the times tables, copy and paste it into a new file and run it to see what happens.
# Version 1 - simply prints it on the screen
print ("This is the 2 times table")
print ("1 x 2 is 2")
print ("2 x 2 is 4")
print ("3 x 2 is 6")
print ("4 x 2 is 8")
print ("5 x 2 is 10")
print ("6 x 2 is 12")
print ("7 x 2 is 14")
print ("8 x 2 is 16")
print ("9 x 2 is 18")
print ("10 x 2 is 20")
# Version 2 - uses less code but doesn't have the words with it
print ("This is the 2 times table")
for x in range(1,11):
print (x*2)
# Version 3 - a bit more code and includes the words
print ("This is the 2 times table")
for x in range(1,11):
print (str(x)+" x 2 is "+str(x*2))
# Version 4 - asks the user to type which times table they want to see
times=int(input("Which times table would you like to do?"))
for x in range (1,11):
print (str(x)+" x "+str(times)+" is "+str(x*times))
Activity 5 - READ
There are 4 different versions for the same problem. The original problem was "I need something that prints the 2 times table".
When we evaluate the solutions we decide if the solution is effective or not. Here are some evaluations of each version:
Watch the video on Nuclear Reactor Safety. It shows you a real world system that is dependent on having strict safety regulations.
What could happen if the computer programs that have been created for this system weren't properly evaluated before they were used?
Evaluating is a skill that needs to be practiced many times before a student can confidently spot potential problems. For each problem that you give them, make sure that you take time to evaluate their solutions. Take a few lessons to practice it, don't just treat it as a quick add on if they have finished early.