CS 1401 Assignment #1

Date Assigned: Wednesday, September 5 or Tuesday, September 4, 2007.

Due Date: Monday, September 10, or Tuesday, September 11, 2007, before the beginning of your lab section.

The goals of this assignment are:

This assignment is worth a total of 20 points. No late assignments will be accepted, but credit will be given for partially completed assignments turned in on time. Hand your assignments to your TA.

Problem 0: Starting Java programming environment
The first thing you will need to learn is how to use tools that will help you create your Java programs. The TA will instruct you in the use of the corresponding tool.

Problem 1. Your First Program (5 points)
Follow the TA's instructions to create a new BlueJ project in your own drive (H:). It is recommended that you create your programs in this drive since only you have access to it, so you won't be at risk of someone else stealing your work (and that can lead to trouble).

Problem 2. Book Exercise (5 points)
Pages 15-20 of your textbook presents phases for creating a program. For this exercise, you will practice working with the Problem-Solving Phase.

Using the three steps of the Problem-Solving Phase, try to solve Problem 12 described on page 26 of your book. You should not try to write a program. Rather, write out what you do to follow the three steps of the Problem-Solving phase applied to the problem.

Problem 3. Book Exercise (5 points)
Using the steps of the Problem-Solving phase, work on problem 14 on page 26 of your textbook.

Problem 4. Drawing Algorithm (5 points)
Using the steps of the Problem-Solving phase, write an algorithm that will help anyone draw the picture below without that person being able to see it.

Make sure that you are specific enough so that there are no misunderstandings or extra additions to the drawing. Try having someone outside of class (a friend or family member) go through the steps and see how they perform.

Note: You can use descriptions such as draw a triangle or make a circle but not descriptions such as draw a rocket or like a sky-scraper.

A printout of all of your classes with your name and modifications on them. Your TA will instruct you.