July 16, 2008
Programming 2: Assignment No. 1
In a clean sheet of short bond paper, asnwer what is being asked.
Write C if the following variable names are written correctly, otherwise write Incorrect.
1. xmax
2. Qbar$
3. Big C
4. Big_C
5. x.3
6. Answer?
7. root1
8. str1
9. input3
10. "hello"
Write a single line declaration for each of the following situations:
1. Declare x1 and x2 as single precision real variables.
2. Declare customername and Address as string variables.
3. Declare customer as integer variable, and sum and Variance as double precision
4. Declare factor as named single precision constant whose value is 0.80
5. Declare City as a named string with value "New York"
Determine the value of each of the following expression
1. 34 / 6
2. 66 \3
3. 32 / 5
4. 33 \ 5
5. 7.1 mod 1.3
NOTE : To be submitted on the next lecture meeting.








