Principles of Programming Languages Spring, 2002 Programming Assignment #2 ¶
Due : May 6th, 2002
No report will be accepted after due date.
No report will be accepted after due date.
- ν΄λΉ λ μ§ μ΄ν λ ν¬νΈλ λ°μ§ μμ
Problem Description ¶
Design and implement simple test programs in Visual C++(V6.0), Visual Basic(V6.0) and Java(JDK 1.4).
- Visual C++(6.0)κ³Ό Visual Basic(6.0), Java(JDK1.4)μμ λμμΈκ³Ό ꡬνμ λν κ°λ¨ν ν
μ€νΈ
- To find out the maximum length of a variable name
- λ³μλͺ
μ μ΅λ κΈΈμ΄ κ°μ μ°ΎκΈ°
- λ³μλͺ
μ μ΅λ κΈΈμ΄ κ°μ μ°ΎκΈ°
- To assess the type-compatibility rule adopted by the Compilers;
- μ»΄νμΌλ¬κ° μ μ©νλ type-compatibility κ·μΉ(묡μμ νλ³ν λ°μ) μ λν νκ°.
DeleteMe) μ¬κΈ°μλ name-compatibility μ structured-compatibilityλ₯Ό μ΄μΌκΈ°νλκ² κ°μλ° --μμ²
- μ»΄νμΌλ¬κ° μ μ©νλ type-compatibility κ·μΉ(묡μμ νλ³ν λ°μ) μ λν νκ°.
- To evaluate the security of pointers in the Compilers;
- μ»΄νμΌλ¬μμ ν¬μΈν°μ λν 보μμ±μ κ΄ν νκ°
- μ»΄νμΌλ¬μμ ν¬μΈν°μ λν 보μμ±μ κ΄ν νκ°
- To check the evaluation order of operands in the Compilers by raising the functional side-effects if possible;
- λ§μ½ κ°λ₯νλ€λ©΄ functional side-effectsκ° λ°μμ΄ μ»΄νμΌλ¬μμ operandμ μμμ λν νκ° μ κ²νλ€. -μμ νμ
- λ§μ½ κ°λ₯νλ€λ©΄ functional side-effectsκ° λ°μμ΄ μ»΄νμΌλ¬μμ operandμ μμμ λν νκ° μ κ²νλ€. -μμ νμ
- To identify a situation in which the βaddβ operator would not be associative;
- "add" μ°μ°μ(operator)κ° μ°μΌμ μλ μν©μ λνμ¬ νμΈνκΈ°
- "add" μ°μ°μ(operator)κ° μ°μΌμ μλ μν©μ λνμ¬ νμΈνκΈ°
- To determine the largest and smallest positive floating point number in Intel Pentium processor.
- Intel Pentium processor μμμ μμμΈ λΆλ μμμ μ κ°μ₯ ν°κ°κ³Ό μμ κ° κ²°μ
- Intel Pentium processor μμμ μμμΈ λΆλ μμμ μ κ°μ₯ ν°κ°κ³Ό μμ κ° κ²°μ
Output ¶
The output should be a sequence of test programs with the results generated from them. Your grade will be highly dependent on the quality of your test programs.
- κ²°κ³Όλ¬Όμ μ£Όμ΄μ§ κ²λ€μ μν΄μ λ§λ€μ΄μ§λ ν
μ€νΈ νλ‘κ·Έλ¨μ μμλλ‘ μ μΆνλΌ. μ±μ μ μλ§ ν
μ€νΈ νλ‘κ·Έλ¨μ νμ§μ΄ λ§μ μν₯μ λ―ΈμΉ κ²μ΄λ€.
Hand In ¶
As usual, you shall submit a floppy diskette with a listing of your program and a set of test data of your own choice, and the output from running your program on your test data set.
- 보ν΅, floppy disketteμ λΉμ μ νλ‘κ·Έλ¨κ³Ό, ν
μ€νΈν λ°μ΄ν°λ€κ³Ό μ€νμ μν κ²°κ³Όλ₯Ό μ μΆνλ€.
- νλ‘κ·Έλ¨μ μλ²½ν μνμ μν΄μ λΉμ μ λ°μ€νΈ λ°μ΄ν°λ₯Ό μ μ€ν μ€κ³νλΌ. λν λΉμ μ ν
μ€νΈ νλ‘κ·Έλ¨ λ΄λΆμ ν©λΉν λ¬Έμλ₯Ό 첨λΆνλ κ²μ μΆμ²νλ€.
- λ€μ λ§νμ¬, λΉμ μ΄ μ κ·Έλ¬ν λμμΈμ νμλμ§, μ΄λ ν μλλ‘ ν΄λΉ ν
μ€νΈλ₯Ό λ§λ€μλμ§μ λν λ
Όλ¦¬μ μ€λͺ
μ 첨λΆνλΌ.