Explain the meaning of the statements shown here, both in AP CSP pseudocode and App Inventor. For example, suppose the variableX has the value 10 before the statement is executed. What value would it have after the statement is executed.
X ← X + 1
Answer
In AP CSP pseudocode: The current value of X is replaced with the value of X plus 1.
AI meaning: The program gets the global X variable then a math block is used to add 1 to that variable.
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 asdotsize, instead of a value, such as '5', help to reduce detail and focus on what is essential in this program.
Answer
You can use less code to get the safe result and it makes the program less for you the programmer to understand
This block sets the dot size to 5 and the block is connected to any other variable block and so everyone of them will be set to that.