Lecture 2 Objectives [Oct 26]prev next

OPENING LINE: In the week before their departure to Arrakis, when all the final scurrying about had reached a nearly unbearable frenzy, an old crone came to visit the mother of the boy, Paul. [Dune, Frank Herbert]
 


At the end of today's class you should

HAVE READ:

KNOW:

BE ABLE TO:

DAILY QUESTION:


Sample Exam Question: Hypotenuse

Write a Java program to compute and print the hypotenuse for the right triangle with short sides 5 and 7. Confirm the result with manual computation.

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


Sample Exam Question: DivisibleBy5

Write a Java program to determine if a String (containing only digits) represents a number divisible by 5.

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


Sample Exam Question: DictionaryLetter

Write a Java program that determines the letter to be used ('A' ... 'Z') in the dictionary where a word, represented by a String, would be placed.

Go through all the steps in the design recipe in the development of your program. Given what you know now about Java programs, are you satisfied with your program? Hint: Try it on words "alabaster" and then "Alabama".