Lecture 24

12/7/98


Click here to start


Table of Contents

Lecture 24

Problem1 What is the difference between

Problem1 What is the difference between

Problem1 What is the difference between

Problem1 What is the difference between

Problem1 What is the difference between

Problem2 Indicate visibility of every variable

Problem 3a What would be printed by the following

Problem 3b What would be printed by the following

Problem 4 Write procedures FIlledRectangleand ShallowRectable, which print rectangles of specified width and height. User should be allowed to specify the character, which should be used as a pen. If user specifies a non-positive value for either width or height, the procedure should print an error message. ShalllowLine and FilledLine are given. );

Problem 4 Write procedures FIlledRectangleand ShallowRectable, which print rectangles of specified width and height. User should be allowed to specify the character, which should be used as a pen. If user specifies a non-positive value for either width or height, the procedure should print an error message. ShalllowLine and FilledLine are given. );

Problem 5 Simulate the following for-loop with while loop

Problem 6 Write procedure max, which finds the max of two numbers. The procedure should be written in such a way that the result can be usable outside of the procedure.

Problem 7

Problem7

Problem 8 Rewrite the following using if-then-else-if

Problem 8 Rewrite the following using case statement

Problem 9 Evaluate each of the following

Arrays

Arrays

Arrays

Arrays

Home work

Programs from this lecture

Author: Vladimir Iskold

Email: iskold@cs.nyu.edu

Download presentation source