COSC450/550 Lab 2

$25.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (5 votes)

Program 1:
Write a program that uses both static and a kind of dynamic scoping, and clearly show the
difference in effect of the two. Explain clearly the differences between the static and the
dynamic scoping.
Program 2:
Write test programs in C++ and Java to determine the scope of a variable declared in a for
statement. Specifically, the code must determine whether such a variable is visible after
the 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 the
source code.
4. Students can work as pair; individual lab has to be submitted by each student.