Lecture 4 Objectives [Oct 30]prev next

OPENING LINE: It was just past midday, not long before the third summons to prayer, that Ammar ibn Khairan passed through the Gate of the Bells and entered the palace of Al-Fontina in Silvenes to kill the last of the khalifs of Al-Rassan. [The Lions of Al Rassan, Guy Gavriel Kay]
 


At the end of today's class you should

HAVE READ:

KNOW:

BE ABLE TO:

DAILY QUESTION:


Sample Exam Question:

Write a program that reads in two integers from the keyboard. Then if the first number is greater than the second number swap their values (hint: you will need a third variable to perform this action). Then output the numbers (one per line) such that the smaller number appears first, then the larger number second.

Go through all the steps in the design recipe in the development of your program.