Assignment: (10 points)
Look at the programs hw1.cpp and hw2.cpp. They are in a C++-like language. The difference is that each formal parameter is labeled with “Value”, “Reference”, “Name”, “Value-Result”, “Constant”, or “Result”.
1) Tell what the output of each program would be, if the scoping rule is static.
2) Tell what the output of each program would be, if the scoping rule is dynamic.
Your output prediction for each. Handwritten or typed is fine. Spacing is unimportant, it's the values that are output which I am looking for.