Home > CCA2 > Chapter 6 > Lesson 6.1.2 > Problem 6-26
Test his machines. Do you think he is right?
Test his machines multiple times with different numbers.
Be sure to test negative numbers. What happens for negative numbers?
Again, test several different numbers.
Mark wants to get his machines patented but has to prove that the set of machines will always do what he says it will, at least for positive numbers. Show Mark how to prove that his machines work for positive numbers by dropping in a variable (for example,
) and writing out each step the machines must take. Input:
machine 1:
output 1:
machine 2:
output 2:Why do the negative numbers come out positive?
Look at the steps that the variable went through in part (c). Pay careful attention to what happens when it passes through the third machine.
Use the eTool below to test the machine.
Click the link at right for the full version of the eTool: CCA2 6-26 HW eTool