All assignments are to be submitted as text-only email or posted on
the web and submitted by email
containing the URL of the
assignment to:
with absolutely no attachments. No assignments will
be accepted late.
No assignments will be accepted on paper. No assignments will be
accepted on diskettes.
An
assignment is late if the email is sent after the start of the class at
which it is due.
The grade for the assignment will be sent back to the email address from
which the
assignment email was sent. In the case of group assignments in which
multiple students
are involved, one student should be the sender of the email and the other
students should
be listed both in the email "CC:" list and in the body of the
message.
Students should check this page frequently for updates.
Assignment #1, assigned Tuesday, 3 February 2004, due Thursday, 5
February 2004 and Tuesday, 10 February 2004.
In class you will should have created a small web page in
your arcib.dowling.edu account in public_html/index.html that says "Web
site of <your_name>
under construction", where <your_name> is replaced by your
first name. Using a text editor (not Word or DreamWeaver, just an
ordinary text editor), change
the text on that page to include more lines of information (your choice, but at least
six lines). Experiment with separating the lines with
"<BR>" or with "<P>",
and experiment with putting "<b>" before some text and
"</b>" after that
text, until you have something reasonably pleasing and presentable. Have
that short page ready no later than for class on Thursday, 5 February 2004.
Write notes on what you figured out in the first part of this
assignment in your notebook and bring it with you on Thursday, 5 February
2004.
Read Chapter 1 of the text book. Using what you figured out
in the first part of this assignment, prepare 7 text files with your
best answers to problems 1 through 7 at the end of chapter 1. Each
of these text files should have a name of the form Ch1-n, where n is
the problem number. All of these files should be put into your
public_html directory in your account on arcib. You will need
one of these files to help you deal with the quiz on Tuesday, 10 February
2004.
Assignment #2, assigned Tuesday, 10 February 2004, due Thursday, 12
February 2004 and Tuesday, 17 February 2004.
Read Chapter 2 of the text book. You are not ready to do the
actual programming involved in the exercises, but you are ready
to do the planning and organization for the exercises. For Tuesday, for
each exercise, make a text file of the name Ch2-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. We will look at
one of those problems in detail in class on Thursday and you will
make a try at the necessary code for Tuesday based on that discussion.
For Thursday, based on the text and on discussion in
class today,
write a description in your notebook of the architecture of modern
computers.
For Tuesday, write a well-researched essay on the ethics of
downloading
music on the web, and post it on your web site as "Music_Ethics.html".
Be sure to cite recent news articles. Be sure to credit your sources.
Be sure to use quotation marks and cite your source on any words for
which you are not the original author. DO NOT USE WORD TO FORMAT YOUR
TEXT. The file must either be simple text or HTML that you edited
with an ordinary text editor such as pico. Send an email with the
URL of your essay before the start of class on Thursday. The essay
will not be accepted late. The essay will not be accepted on paper.
The essay will not be accepted in the text of the email message.
Assignment #3, assigned Tuesday, 17 February 2004, due Thursday, 19
February 2004 and Tuesday, 24 February 2004.
Read chapter 3 of the text book. For Thursday, for
each exercise, make a text file of the name Ch3-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. Don't worry if you cannot
say a lot about every problem, but you should have something
to say about most of them. We will look at
one of those problems in detail in class on Thursday and you will
make a try at the necessary code for Thursday based on that discussion.
For Thursday, based on the text, on discussion in class, and
what you can find on the web, write a description in your notebook
of the general structure of a java application, of how to
compile a java application and how to execute a java application.
For Tuesday, write an essay on the process of debugging a
program from your current perspective. Do use what you find in
the text book, but try to be honest about your own impressions
of the idea of writing code correctly to begin with versus
iteratively fixing various versions. You will be graded not
on how well you agree with the text or the instructor, but on
how coherently you express your ideas. Near the end of the
semester you will be asked to write a second essay on the
same subject, and you may find it interesting to see how much
or how little your ideas on the subject change as you gain
experience with programming.
Be sure to credit your sources.
Be sure to use quotation marks and cite your source on any words for
which you are not the original author. DO NOT USE WORD TO FORMAT YOUR
TEXT. The file must either be simple text or HTML that you edited
with an ordinary text editor such as pico. Send an email with the
URL of your essay before the start of class on Thursday. The essay
will not be accepted late. The essay will not be accepted on paper.
The essay will not be accepted in the text of the email message.
Assignment #4, assigned Tuesday, 24 February 2004, due Thursday, 26
February 2004 and Tuesday, 2 March 2004.
Read chapter 4 of the text book. For Thursday, for
each exercise, make a text file of the name Ch4-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. Don't worry if you cannot
say a lot about every problem, but you should have something
to say about most of them. We will look at
one of those problems in detail in class on Thursday and you will
make a try at the necessary code for Tuesday based on that discussion.
Our work on the problems in this chapter will continue into the
next week, but it is important that you get prepared to work
on these problems now.
For Thursday, using everything you have learned so far,
prepare a summary in your notebook of useful hints on how to
write a java application that uses InputBox and OutputBox.
For Tuesday, modify the shoe size program to handle
US, UK, European and Japanese shoe sizes according to
the following simplified rules:
For the Japanese men's shoe size take the length of the foot in
centimeters, subtract 25.25, multiply by 10, divide by 6.4, add
25.25 and round to the next half-centimeter. For women
subtract 1/2.
The European shoe size is derived from the length
of the foot in centimeters according to the rule
in problem 3.1
For US men, take the size in inches, subtract 7 5/6, multiply
by 3 and round up to the
nearest half. For US women, add another 1.5.
For UK men, take the size in inches, subtract 8,
multiply by 3 and round up to the nearest half.
For UK women subtract 1/2 from the UK men's size.
Your input should be the size of the foot in inches, just
as before, but now, you should output all the shoe sizes
in all these systems. Compare your output to
http://www.i18nguy.com/l10n/shoes.html#adult.
Note the places where your program disagrees with
the chart, but follow the rules above even when they disagree
with the chart. If you follow these rules, there
will be disagreements, but they will follow
a certain (hopefully obvious) pattern. Put your code in your account on arcib.
Be prepared to discuss and demonstrate your code in class.
Assignment #5, assigned Tuesday, 2 March 2004, due Thusday, 4
March 2004 and Tuesday, 9 March 2004
Read chapter 5 of the text book. For Thursday, for
each exercise, make a text file of the name Ch5-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. Don't worry if you cannot
say a lot about every problem, but you should have something
to say about most of them. We will look at
one of those problems in detail in class on Thursday and you will
make a try at the necessary code for Tuesday based on that discussion.
For Thursday, put a summary of the if and switch
statements in your notebook.
For Tuesday, modify the shoe size program to handle
US, UK, European and Japanese shoe sizes as before, but instead
of putting out all the conversions, accept input of a two letter
country code, a one letter gender code, and a size, and put
out only the one appropriate conversion or an error message
for an inappropriate code or for a size corresponding to a foot
length of less than 9 inches or more than 13.5 inches.
Put your code in your account on arcib.
Be prepared to discuss and demonstrate your code in class.
There will be an in-class midterm exam on Thursday, 11 March.
Assignment #6, assigned Tuesday, 16 March 2004, due Thursday, 18
March 2004 and Tuesday, 23 March 2004
Read chapter 6 of the text book. For Thursday, for
each exercise, make a text file of the name Ch6-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. Don't worry if you cannot
say a lot about every problem, but you should have something
to say about most of them. We will look at
one of those problems in detail in class on Thursday and you will
make a try at the necessary code for Thursday based on that discussion.
For Thursday, put a summary of the while, do ... while and for
loops in your notebook.
For Tuesday, design a program that will use an InputBox to read
one number after another until it encounters a 0, and then put
the count of the numbers (not including the zero),
the average (not including the zero) and the sum of
all the numbers (not including the zero) and display all these
results in an OutputBox.
Assignment #7, assigned Tuesday, 23 March 2004, due Tuesday, 30
March 2004
Read chapter 7 of the text book. For Tuesday, for
each exercise, make a text file of the name Ch7-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. Don't worry if you cannot
say a lot about every problem, but you should have something
to say about most of them. We will look at
one of those problems in detail in class on Thursday and you will
make a try at the necessary code for the next Tuesday based on that
discussion.
For Tuesday, design and implement an applet that will draw the
Olympic Rings with constantly shifting colors for each ring.
Assignment #8, assigned Tuesday, 30 March 2004, due Thursday,
1 April 2004 and Tuesday, 13 April 2004
Read chapter 8 of the text book. For Thursday, for
each exercise, make a text file of the name Ch8-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. Don't worry if you cannot
say a lot about every problem, but you should have something
to say about most of them. We will look at
one of those problems in detail in class on Thursday and you will
make a try at the necessary code for Tuesday based on that discussion.
For Thursday, put a summary of the handling of one-dimensional arrays
in your notebook.
For Tuesday (note the week's break),
design a program that will use an InputBox to read
one number after another until it encounters a 0, and then put
the numbers into ascending order and print them out in
order in an Output box.
Assignment #9, assigned Tuesday, 13 April 2004, due Thursday, 15
April 2004 and Tuesday, 20 April 2004
Read chapter 9 of the text book. For Tuesday, for
each exercise, make a text file of the name Ch9-n, where n is the
exercise number, containing your notes on what to do to address the
problem and post that text file on your web site. Don't worry if you cannot
say a lot about every problem, but you should have something
to say about most of them. We will look at
one of those problems in detail in class on Tuesday and you will
make a try at the necessary code for Thursday based on that discussion.
On the basis of what you have read in the text so far and
the ideas discussed for BufferedHead, write an essay explaining
a workable general approach to creating simple animations. Post
your essay on your web site by Thursday, 15 April.
For Tuesday, 25 April,
design a program based on BufferedHead that will repeatedly wink one
eye at the viewer.
Assignment #10, assigned Tuesday, 27 April 2004, due Thursday, 29
April 2004 and Tuesday, 4 May 2004
This is the last assignment for the semester. All elements of this assignment
must be done and submitted on time to get credit.
For Thursday, write a new essay on the process of debugging a
program from your current perspective. Use what you have
learned in this course but try to be honest about your own impressions
of the idea of writing code correctly to begin with versus
iteratively fixing various versions. You will be graded not
on how well you agree with the text or the instructor, but on
how coherently you express your ideas. However, you must
show an awareness of what you have read in the text and what
you have heard in the lectures.
Be sure to credit your sources.
Be sure to use quotation marks and cite your source on any words for
which you are not the original author. DO NOT USE WORD TO FORMAT YOUR
TEXT. The file must either be simple text or HTML that you edited
with an ordinary text editor such as pico. Send an email with the
URL of your essay before the start of class on Thursday. The essay
will not be accepted late. The essay will not be accepted on paper.
The essay will not be accepted in the text of the email message.
For Tuesday, based on what we have done is class and
what is in the on-line lecture notes, prepare a simple
animation applet that draws a fish that swims in from the
right side of the screen, winks his eye when his eye passes the middle
of the screen and the swims out the left side of the screen.
Call the applet FishWinks.java and compile it to FishWinks.class.
Place both the .java and the .class files on your web site.
You and your classmates will present your term project in class
starting on Tuesday, 4 May 2004 and continuing on
Thursday, 6 May 2004, if necessary.
Final:
There will be an in-class Final exam on Thursday, 13 May 2004, from 9:30 am to 11:50 am.