Question

Discuss the results of your experiment in a Word document. Show your analysis and

your data then explain your conclusions.

EXAMPLE:

Here is an example scenario using the square algorithm. The square routine will take a

number in as a parameter, perform calculations to determine the square of the number

and return the result. You will examine the routine and determine the variables of

interest. Then experiment with different input values as you build your desk check

tables.

Sample Desk Check: Using your pseudo-code algorithm. This routine has three

variables of interest:

num-the input parameter

• i-the value of the counter

Value - the result of the calculation

Our hypothesis will be:

If you call the square routine with an input number, the calculated result returned by the

square routine will be that number squared. The input value times itself (number X

number).

1. Hypothesis: If you call the square routine with an input of 3, the calculated result

should be 9. Experiment Desk check using 3 as input parameter

Expected Result: square(3) = 9

2.

num,

value

033

136

239

Actual Result 2

3. Hypothesis: If you call the square routine with an input of 7, the calculated result

should be 49.

Question image 1