CMSI 185
Homework #1
Due: 2009-02-03

Readings: Read Chapter 1 and Chapter 2 of David Eck's text. Make sure you read the entire chapters, including the quizzes and quiz solutions at the end of each chapter. In addition, read the following articles: Computing is a Natural Science by Peter Denning, and Computational Thinking by Jeannette Wing.

  1. (30 pts) Give a one-paragraph summary of Wing's article. Make sure it has a good, original, topic sentence.
  2. (5 pts) Skim (or read) this article and look at the bar graph on page 3. The data presented are from 2004. Find some authoritative information on this same topic that is more up to date.
  3. (65 pts) Write a complete Java program called Rot13 that displays the Rot13 encoding of its arguments.

    Your code should be structured along these lines:

    public class Rot13 {
        public static void main(String[] args) {
            ....
        }
    }
    

    Don't forget comments, by the way. Here are some example runs of the program (your typing is in bold, the response is plain):

    java Rot13 maybe I can ripoff a solution to this online
    znlor V pna evcbss n fbyhgvba gb guvf bayvar
    java Rot13
    
    java Hello??
    Uryyb??
    

    For this problem you will need to demonstrate to me, on your laptop, or on a lab computer, that you can bring this file up in an editor, save it, compile it, and run it. Don't worry, though, you'll never have to do this again. I just want to make sure you don't find yourself half way through the semester realizing you don't know how to write and run a program on your own.