<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rdf:RDF [
<!ENTITY % HTMLlat1 PUBLIC
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
 %HTMLlat1;
]>
<rdf:RDF
 xmlns="http://purl.org/rss/1.0/"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:admin="http://webns.net/mvcb/"
>
<channel rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/index.xml">
<title>Computer Science I: Media Computation</title>
<link>http://www.cs.uni.edu/~wallingf/teaching/061/index.html</link>
<description>The home for all things 810:061:04</description>
<dc:language>en-us</dc:language>
<dc:creator>Eugene Wallingford</dc:creator>
<admin:generatorAgent rdf:resource="http://home.columbus.rr.com/n1xt3r/nanoblogger/" />
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-21T12_07_04.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-07T16_53_03.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-05T14_42_32.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-02T09_36_18.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-30T14_10_56.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-28T13_01_04.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_42_56.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_39_02.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-16T14_10_09.htm" />
<rdf:li rdf:resource="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-14T16_18_53.htm" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-21T12_07_04.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-21T12_07_04.htm</link>
<title>Wrapping Up the Semester</title>
<dc:date>2006-12-21T12:07:04-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>General</dc:subject>
<description><![CDATA[<p>Well, the exams are all graded and final grades are submitted.
I enjoyed this semester; I hope you did, too.  Media computation
was a fun way to learn about computation more generally, and
a little about programming in Java, and a little bit about
computer science.  I hope that during those times when the
course got tough you still felt like your hard work was worth
it, that you were learning something interesting and valuable.
At times this semester I may have sounded like a cheerleader,
but I really do mean all I said about computer science -- it
is a discipline that is at the edge of forward progress in
every other discipline; it is redefining our lives as we
live them; it is creating new possibilities for expression
and for doing.
</p><p>
Good luck in CS II or wherever next semester finds you.  I'd
love to hear from you as you continue your studies at the
university.
</p><p>
And please do stop by to pick up your final exam.  Those things
take up a lot of space in my file drawer!</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-07T16_53_03.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-07T16_53_03.htm</link>
<title>Session 28</title>
<dc:date>2006-12-07T16:53:03-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Sessions</dc:subject>
<description><![CDATA[<p>Today we wrapped up the course.
</p><p>
We looked at an
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session28/ImagePageGenerator-v1.java">
   images page generator</A>
and then 
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session28/ImagePageGenerator.java">
  extended it</A>
to post real thumbnails produced by our own
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session28/Picture.java">
   Picture</A>
class.
</p><p>
Then I closed the circle on the course by demonstrating a
very simple
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session28/stego-demo/">
   steganography program</A>,
implemented using a <TT>Picture</TT> class augmented with
<TT>hide()</TT> and <TT>recover()</TT> methods.  This code
is far from bulletproof (<TT>hide()</TT> can create an RGB
value out of the range 0..255, and <TT>recover()</TT> tries
to read from pixels that do not hide text), but it shows the
idea well -- and serves as a great place for you to jump
off on your own programming fun!
</p><p>
I closed with a short presentation of some key Big Ideas
from the course this semester.  Media computation is a
useful end in its own right, but we also saw many of the
most important ideas from CS, including <EM>representation</EM>,
<EM>algorithm</EM>, and <EM>layers of abstraction</EM>.
</p><p>
Here are the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session28/slides.pdf">
   slides</A>
I used today, along with a
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session28/script.txt">
   script</A>
of some of my Dr. Java interactions.
</p><p>
Our next time together is the final exam, at 3:00 PM next
Thursday, December 14.  It will cover material from both
midterms and a bit of Chapter 13 that didn't make it onto
Exam 2.  Same format, somewhat longer (but nowhere near
twice as long, though you'll have twice as much time).
</p><p>
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-02T09_36_18.htm">
   Homework 8</A>,
is due Saturday afternoon.  Though I'll be out of town
most of tomorrow and all day Saturday, I will be within
e-mail reach, so feel free to send your q$a.uestions
Electronic submission only, no print-out required.</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-05T14_42_32.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-05T14_42_32.htm</link>
<title>Session 27</title>
<dc:date>2006-12-05T14:42:32-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Sessions</dc:subject>
<description><![CDATA[<p>Today was a day of review.  We listened to some
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session27/the-voice-doctored/">
   wonderfully doctored voices</A>
from
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-10.html#e2006-10-19T16_06_37.htm">
   Homework 5</A>.
Then we looked at Exam 2.  The scores were much lower than
I expected, which means that I almost certainly misjudged
what we had prepared you to do well.  Don't worry too much
about those low scores -- I will take the results from
Exam 2 into account when I assign grades at the end of the
semester.  Finally, we closed our review by looking at
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_42_56.htm">
   Homework 7</A>,
especially some
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session27/graphics-examples/">
   very cool images</A>
produced by you all with your graphics interpreters.  My
discussion of the solutions focused on how we can use
helper methods to make our interpreter more flexible.  If
the code for drawing circles and squares is implemented
in separate methods, then we can call them as a part of
other helper methods.  The result can be some rather
interesting commands that are implemented in terms of
simpler commands!
</p><p>
I planned to show you a web page generator for an images
thumbnails page, but I managed to delete it before getting
to class.  Then I couldn't find it.  That's how the day
went...  Of course, upon returning to my office, I found
it:
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session27/ImagePageGenerator.java">
   ImagePageGenerator.java</A>.
Take a look at it before next class.  Run it, using the
path to your <TT>mediasources</TT> directory, and see
the web page it generates right into your <TT>mediasources</TT>
directory.  Here is the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session27/index.html">
   <TT>index.html</TT></A>
that the program generated for my <TT>mediasources</TT>
directory.
</p><p>
The ending of the day was perfect:  In what was either the
stupidest move of my teaching career or a sign of great
boldness and confidence -- and trust in you -- I closed this
session with stduent evaluations.  I doubt you'll encounter
many other professors who will return an exam with an average
grade of 43% and do student evals the same day!
</p><p>
Here are the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session27/slides.pdf">
   slides</A>
I used today when discussing the exam questions.  Study
those questions and solutions!
</p><p>
For next time, read Section 13.3 and study the images-page
generator class.  And don't forget
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-02T09_36_18.htm">
   Homework 8</A>,
which is due Saturday afternoon.  Yes, Saturday afternoon --
electronic submission only, no print-out required.</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-02T09_36_18.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-12.html#e2006-12-02T09_36_18.htm</link>
<title>Homework 8: Generating a Web Page of Your Own Design</title>
<dc:date>2006-12-02T09:36:18-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Homework</dc:subject>
<description><![CDATA[<p>Extend
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session26/PageGenerator.java">
   our <TT>PageGenerator</TT> class</A>
to generate a web page of your personal design.  Your generator
must add at least two new features to the page.  Here are some
possible features you might add:
<UL>
<LI> Read a headline from a favorite news site, such as
     <A HREF="http://reddit.com/">
        Reddit</A>,
     <A HREF="http://www.cnnsi.com/">
        Sports Illustrated</A>,
     or
     <A HREF="http://abc.go.com/">
        ABC</A>,
     and display it on your page.  Use the same sort of "scavenger
     hunt" as I did to locate the day's cartoon on the FoxTrot
     home page.
     </LI>
<LI> Display a list or table of all the sound files in a directory,
     as links that the user can follow to play the sound.  (You can
     use a standard <TT>&lt;A HREF=""&gt;&lt;/A&gt;</TT> tag for
     the link.)
<LI> Add thumbnails of all or some subset of the images in a given
     directory, with links to the full image.
     </LI>
</UL>
</p><p>
If you have ideas of other features that you would like to add,
just ask!!
</p><p>
Additionally, you may also modify the existing methods of the
generator to rearrange the page, change its presentation, etc.
(Such changes won't count toward your assigned quota of two
unless they are substantial and I approve them as such in
advance.)
</p><p>
This assignment is worth <STRONG>20 points</STRONG>.
</p><p>
<STRONG> Extra Credit Opportunities </STRONG>
</p><p>
Add more than two new features...  (2 points)
</p><p>
Any other ideas?
</p><p>
<STRONG>Deliverables</STRONG>
</p><p>
By the <STRONG><EM>4:00 PM on Saturday, December 9</EM></STRONG>,
submit a zip file of a directory that contains these files:
<UL>
<LI> <TT>PageGenerator.java</TT>  </LI>
<LI> two different web pages generated by your program, from
     two different days </LI>
<LI> a short write-up of your additions to the generator </LI>
</UL>
following the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/homework-submission.html">
   submission instructions</A>
for the course.
</p><p>
For this assignment, you <STRONG>do not need to submit a
printout</STRONG>.  We will grade from the electronic submission
alone.</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-30T14_10_56.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-30T14_10_56.htm</link>
<title>Session 26</title>
<dc:date>2006-11-30T14:10:56-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Sessions</dc:subject>
<description><![CDATA[<p>Today we turned our string and file skills to a practical
media computation task: the generation of a web page.  The
pages we create are "dynamic" in the sense that they rely
on content that changes: the comic strip on a web page out
on the web, and a randomly-selected quote from a file of
quotes.
</p><p>
You can download all the material from class -- sample web
pages, the Java programs, and the quotes file we used --
in this
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session26.zip">
   <TT>.zip</TT> file</A>.
</p><p>
For next time, read Chapter 13 and study the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session26/PageGenerator.java">
   <TT>PageGenerator</TT></A>
class.  And don't forget
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_42_56.htm">
   Homework 7</A>,
which is due tomorrow afternoon.  You can bring the print-out
to 305 ITT, the department office, any time.  If I'm in, you
can bring it on back; otherwise, the secretary will put it in
my mailbox.</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-28T13_01_04.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-28T13_01_04.htm</link>
<title>Session 25</title>
<dc:date>2006-11-28T13:01:04-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Sessions</dc:subject>
<description><![CDATA[<p>The main event today was our second exam.  We spent the first
few minutes learning how to create a double-clickable application
(with a custom icon, no less!) for a Java program.  We used our
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session25/FoxTrotDownloader.java">
   <TT>FoxTrotDownloader</TT></A>
from last session as our demonstration program.  You can follow
along with the discussion on this
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session25/making-an-app.html">
   tutorial page</A>.
</p><p>
In class on Thursday, we will begin our discussion of generating
web pages to complement our image and sound files.  Be sure to
read the first half of Chapter 13 to prepare.
</p><p>
Don't forget that
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_42_56.htm">
   Homework 7</A>
is due on Friday afternoon.  We will have one more assignment this
semester, running from this Friday to the last day of classes.</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_42_56.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_42_56.htm</link>
<title>Homework 7: Drawing Pictures from a Simple Language</title>
<dc:date>2006-11-21T14:42:56-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Homework</dc:subject>
<description><![CDATA[<p>Write a class named <TT>GraphicsInterpreter</TT> that reads a sequence
of graphics commands from a text file.  The class should have a method
named <TT>interpret</TT> that
<UL>
<LI> takes a filename as input,  </LI>
<LI> reads the commands contained in the file, and  </LI>
<LI> returns a <TT>Picture</TT> on which the commands
     have been executed.  </LI>
</UL>
</p><p>
The method should create a blank 640x480 picture on which to drwa.
</p><p>
There are at least three kinds of commands:
<UL>
<LI> <TT>line x1 y1 x2 y2</TT>  <BR/>
</p><p>
     The <EM>line</EM> command draws a straight line.  For example,
     "line 10 20 300 400" draws a line from (10, 20) to (300, 400).
     </LI>
</p><p>
<LI> <TT>circle x y d</TT>  <BR/>
</p><p>
     The <EM>circle</EM> command draws, yes, a circle.  For example,
     "circle 100 200 50" draws a circle whose center point is
     (100, 200) and whose radius is 50.
     </LI>
</p><p>
<LI> a command of your own design!  It can draw a figure, write, text, ....
</UL>
</p><p>
This assignment is worth <STRONG>20 points</STRONG>.
</p><p>
You can use this main method for your class:
<PRE>
     public static void main( String[] args )
     {
       GraphicsInterpreter artist = new GraphicsInterpreter();
       String filename = FileChooser.getMediaPath( "commands.txt" );
       Picture p = artist.interpret( filename );
       p.show();
     }
</PRE>
</p><p>
<STRONG> Extra Credit Opportunities </STRONG>
</p><p>
Make it so that we can initialize a <TT>GraphicsInterpreter</TT>
with a particular picture.  If the object is created with a
picture, then it draws on the given picture.  If not, it uses
a blank canvas.  (1 point)
</p><p>
Create a <TT>commands.txt</TT> file that produces a picture that
does something useful.  For example, I could imagine a sequence
of commands that create a poster to advertise a meeting.  (1 point)
</p><p>
<STRONG>Deliverables</STRONG>
</p><p>
By the <STRONG><EM>4:00 PM on Friday, December 1</EM></STRONG>,
submit a zip file of a directory that contains these files:
<UL>
<LI> <TT>GraphicsInterpreter.java</TT>  </LI>
<LI> two different files that test your class,
     one named <TT>commands.txt</TT>  </LI>
<LI> a <TT>Picture</TT> created by your program from <TT>commands.txt</TT>
     </LI>
</UL>
following the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/homework-submission.html">
   submission instructions</A>
for the course.
</p><p>
For this assignment, you need to submit only one printout --
<TT>GraphicsInterpreter.java</TT>.</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_39_02.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-21T14_39_02.htm</link>
<title>Session 24 -- Files and Objects</title>
<dc:date>2006-11-21T14:39:02-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Sessions</dc:subject>
<description><![CDATA[<p>Being the last day before our second midterm, and the last
day before a well-deserved break from classes, we mostly
wrapped up some details today.  We explored reading text
files, and saw that the process bears a similarity to
writing text files.  We fiddled a bit more with strings
and e-mail addresses, too.
</p><p>
Here are the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session24/slides.pdf">
   slides</A>
(PDF) I used and a sanitized
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session24/script.txt">
   script</A>
of some of our Dr. Java interactions.  We produced several
classes:
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session24/Student.java">
   <TT>Student</TT></A>,
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session24/StudentReader.java">
   <TT>StudentReader</TT></A>, and
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session24/ProspectReader.java">
   <TT>ProspectReader</TT></A>.
</p><p>
For a little bonus, I offered a program that reads not text,
but an image, and not from a file, but from a URL!  I don't
expect you to be able to write this kind of code, especially
the method that reads and writes the image.  But you should
be able to see some familiar structure in the code.  If you
want to have fun with web sites of your own choice, then do!
Here is my
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session24/FoxTrotDownloader.java">
   <TT>FoxTrotDownloader</TT></A>.
</p><p>
For next time, prepare for the exam.  It will focus on material since
the last exam through Chapter 12 of the textbook.
</p><p>
Homework 7 will be posted in a matter of minutes!</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-16T14_10_09.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-16T14_10_09.htm</link>
<title>Session 23</title>
<dc:date>2006-11-16T14:10:09-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Sessions</dc:subject>
<description><![CDATA[<p>Today, students laughed at me for being old.  But I don't
feel too bad.  I am just glad that you all know how to make
<TT>.zip</TT> files!
</p><p>
We expanded on our
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session23/Die.java">
   <TT>Die</TT> class</A>
example from last time to create a
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session23/PowerBallEntry.java">
   <TT>PowerBallEntry</TT> class</A>.
Why write a lot of code in a <TT>main()</TT> when we can
create an object with that behavior?  In Computer Science II,
you will learn that there are great reasons to put all of your
behavior in objects!  For now, we see just one: it is a lot
easier to reuse the behavior when we can create an object
that does it.
</p><p>
From there, we ran one last test, to demonstrate just how
hard it is to pick a winner in Powerball...  Run
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session23/EasyWinner.java">
   <TT>EasyWinner</TT></A>
-- but don't be in a hurry; it will probably take a while.
</p><p>
Finally, we began to explore splitting strings using a
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session23/Student.java">
   <TT>Student</TT> class</A>.
We left an open question: <TT>emailDomain()</TT> works for
"@cs.uni.edu" but not "@gmail.com".  Your job: fix it!
</p><p>
Here are the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session23/slides.pdf">
   slides</A>
(PDF) I used and a
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session23/script.txt">
   script</A>
of some of our Dr. Java interactions.
</p><p>
For next time, start reading Chapter 13 of the textbook.  Our
second midterm exam will be Tuesday, November 28 -- a week from
our next session, and the class day after Thanksgiving.
Homework 7 will be posted next session.</p>]]></description>
</item>
<item rdf:about="http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-14T16_18_53.htm">
<link>http://www.cs.uni.edu/~wallingf/teaching/061/archives/monthly/2006-11.html#e2006-11-14T16_18_53.htm</link>
<title>Session 22</title>
<dc:date>2006-11-14T16:18:53-06:00</dc:date>
<dc:creator>Eugene Wallingford</dc:creator>
<dc:subject>Sessions</dc:subject>
<description><![CDATA[<p>Today, we extended our
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session22/Die.java">
   <TT>Die</TT> class</A>
to produce a sequence of unique values.  Along the way, I
hope we learned a bit about designing a method to perform
a task with several layers of complexity.
</p><p>
We then revisited a method for
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session22/DiffSound.java">
   <TT>DiffSound</TT></A>
that writes the object to a file.  It exposed many of the
elements of writing files in Java -- which we will soon do
much of, when generating web pages!
</p><p>
Here are the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session22/slides.pdf">
   slides</A>
(PDF) I used and a
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session22/script.txt">
   script</A>
of some of our Dr. Java interactions.  In addition to the
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session22/Die.java">
   <TT>Die</TT></A>
and
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session22/DiffSound.java">
   <TT>DiffSound</TT></A>
classes, we also produced a simple program to
<A HREF="http://www.cs.uni.edu/~wallingf/teaching/061/docs/session22/StringMirror.java">
   mirror a <TT>String</TT></A>.
</p><p>
For next time, finish reading Chapter 12 of the textbook.
</p><p>
<STRONG><EM>Note 1</EM></STRONG>.  Our second midterm exam will
be Tuesday, November 28 -- the first class day after Thnaksgiving.
</p><p>
<STRONG><EM>Note 2</EM></STRONG>.  Your next homework assignment
is due next time.</p>]]></description>
</item>
</rdf:RDF>
