14. Desktop testing or simulation¶
Understanding that the value of variables can change during program execution is not so natural, but it is fundamental when programming
A program cannot be read as text, but carefully analyzing line by line
You can practice with pencil, eraser, and paper
debt |
purchase |
Screen |
---|---|---|
-0- |
-100- |
600 |
-100- |
-200- |
|
-300- |
300 |
|
600 |
Q-1: Using “debt = debt + purchase, intially debt = 0, purchase = 100”, fill in the blanks in the table.
The new debt value for the next line is
14.1. Don’t rush desktop testing¶
You have attempted of activities on this page