1. Explain the meaning of the statements shown here, both in AP CSP pseudocode and App Inventor. For example, suppose the variable X has the value 10 before the statement is executed. What value would it have after the statement is executed.
Both of the statements have the same meaning. When executed, the code will add one to the value of X and that will be the new value of X. If X has the value of 10 before the statement is executed, after the statement is executed X would have a value of 11.
2. One aspect of abstraction is that it helps to reduce details to focus on what's relevant. How does the use of a variable, such as dotsize, instead of a value, such as '5', help to reduce detail and focus on what is essential in this program.
If you use a variable instead of a specific value, it allows you to easily perform functions and manipulate the variable. Without a variable, you wouldn't be able to write a code that said X <-- X + 1 because you would have to manually add one to each number. Without variables, coding simply wouldn't work.