65-lecture11 - Computer Science 65 Intro to CS February 28,...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science 65 Intro to CS February 28, 2008 Assignment #5 Methods (Chapter 5.1 – 5.2)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements Exam 1 Exam #1 March 6th (1 week from today) Study Guide is online Covers Chapter 1 through material today (Chapter 5.2) You can bring in 1 sheet of notes
Background image of page 2
Announcements Computer Club Friday, February 29 3:15 Howard 212
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
I can’t get GIMP on my machine I can’t view cat.ppm Couple of options 1. Use the lab machines. Type “gimp” in a terminal window File→open and find the ppm file Or double-click the file icon 2. If GIMP will not work at home, try irfanview http://www.irfanview.com/ Goto download Click on TUCOWS link “Download Now”
Background image of page 4
I am getting a FileNotFoundException error Make sure you are using public static void main (String [] args) throws IOException
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
My program can’t find the cat.ppm file Download the cat.ppm file from website to your project directory inside your eclipse workspace directory
Background image of page 6
A Mistake from Tuesdays Class
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Homework 5 Additional Points: input filename Prompt the user for the input and output filename and run the algorithm on these files. Note: the image should be able to be any size. String inputFileName; String outputFileName; File inFile = new File(inputFileName); Scanner inputFile = new Scanner(inFile); PrintWriter outputFile = new PrintWriter(outputFileName);
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Covert an image file to a .ppm file To convert an image to .ppm format Open image in GIMP Save as Change filename to have .ppm extension Save as ASCII PPM
Background image of page 10
Homework 5 Additional Points: nested loops Instead of a single loop, use nested loops to process the image.
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 12
Homework 5 Additional Points: min and max Calculate the maximum and minimum red
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/02/2008 for the course CS 065 taught by Professor Urness during the Spring '08 term at Drake University .

Page1 / 36

65-lecture11 - Computer Science 65 Intro to CS February 28,...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online