Program 1:Write a program that uses both static and a kind of dynamic scoping, and clearly show thedifference in effect of the two. Explain clearly the differences between the static and thedynamic scoping.Program 2:Write test programs in C++ and Java to determine the scope of a variable declared in a forstatement. Specifically, the code must determine whether such a variable is visible afterthe body of the for statement.Instructions:1. Submit the source file for both programs on blackboard.2. Submit a screen shot of the result in a word document.3. Using comments to show your name, the purpose of the program, and the date in thesource code.4. Students can work as pair; individual lab has to be submitted by each student.
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.