Assigned on Friday, 1/3/03. Due on Monday, 1/6/03 by 5 PM.
Read the Math/CS computer account sheet you received from me in class. Sign the bottom, Rip off the form at bottom of the sheet, sign it, and hand it in to me.
Take the remainder of your account sheet to CMC 304 or 306, and sit down at a computer. If the computer appears to be running Windows (not sure? ask someone), reboot it and select Linux when you get the chance to choose between Linux and Windows. Use the user name and password on your account sheet to log in. Following the procedure I showed you in class, change your password to something you can remember (it's fine to use your Netware password, but you may also use something different if you wish). Log out and then log in using your new password. Trouble? Ask a lab assistant or me or Mike Tie (CMC305).
Once you have passed through this bit of computational hazing successfully (or not), send me an e-mail message (jondich@carleton.edu). If you have questions about the login and password changing process, ask them. Also, use this message to introduce yourself. In particular, tell me about your experiences with computers, what inspired you to take this course, what your major plans are, and anything else that comes to mind. If you have done any programming before, let me know how much, and in what language(s).
It is possible to send e-mail directly from your Linux account, but I don't recommend it unless you plan to check your Linux e-mail regularly. I will send all class-related e-mail to your carleton.edu address, not your mathcs.carleton.edu address, but other people may just hit the Reply button if you write to them from mathcs.carleton.edu.
Assigned Wednesday, 1/8/03. Due 8:30 AM Monday, 1/13/03. Change-maker. Hand in by using HSP to submit only your ChangeMaker.java file.
Assigned Monday, 1/13/03. Due 8:30 AM Friday, 1/17/03. Squares. This program should ask the user "How many squares?", "How many squares per row?", and "How wide (in pixels) should each square be?" The program should then draw as many rows of squares as required to draw the requested number of squares. For example, if the user asks for 17 squares with 5 squares per row, there will be 5 squares each in the first three rows, and 2 squares in the fourth row. If you feel like it, you may give the user the chance to request a color, too.
See Rectangle.java for a demonstration of how to draw a rectangle.
FROM NOW ON: When I want to give you BlueJ projects, I will store them in /Accounts/courses/cs117/ondich/. To copy a project into your own account, open a terminal window and type "cp -r /Accounts/courses/cs117/ondich/projectname .". (The period means "my current directory," so this operation copies the project into your current directory. The "-r" means "recursive," and tells cp to copy the entire projectname folder and its contents and its subfolders and their contents and their subfolders....) If you have forgotten the project name, type "ls /Accounts/courses/cs117/ondich" to get a list of projects.
I will also make the .java files available over the web. You can use these by copying and pasting the code into your own BlueJ project.
Assigned Friday, 1/17/03. Due 8:30 AM Wednesday, 1/22/03. Dice and Targets.
Assigned Wednesday, 1/22/03. Due 8:30 AM Wednesday, 1/29/03. An array of fish.
Assigned Wednesday, 1/29/03. Due on paper, 8:30 AM Friday, 1/31/03. Some binary arithmetic.
Assigned Wednesday, 2/12/03. Due 8:30 AM Monday, 2/17/03. A sorted array of fish.
Assigned Wednesday, 2/19/03. Due 8:30 AM Monday, 2/24/03. An assignment about time complexity.
Assigned Wednesday, 2/19/03. Due 8:30 AM Wednesday, 2/26/03. A small exercise on recursion.
Assigned Wednesday, 2/19/03. Due 8:30 AM Friday, 2/28/03. Write a program that asks the user to select a text file, and then reports:
Assigned Friday, 2/28/03. Due 5:00 PM Sunday, 3/16/03. The final project.
The dates below are the dates you should start the readings.
1/3/03. Chapter 0 and sections 1.1-1.3 of Wu.
1/6/03. The rest of Chapter 1 and sections 2.1-2.5.
1/10/03. Chapter 3 and sections 6.1-6.3.
1/15/03. Chapter 4.
1/17/03. Sections 7.1 and 7.2.
1/22/03. Sections 7.1-7.7
1/24/03. Sections 8.1-8.5, 9.1-9.3
1/27/03. Sections 10.1-10.2 (sorting and searching)
2/17/03. Chapter 16 (recursion)
2/19/03. Sections 11.1-11.4 (file I/O and exceptions)