TWiki> CS101 Web>CS101Spring2012>Code (2012-04-24, Main.troy)EditAttach
CS 101- Spring 2012

Sample Code Page

-- Main.troy - 2012-01-19

  • Lect0119a.java: Simple Java Program with variables and println statements

  • Lect0131c.java: Using mutliple methods with mulitple parameters to draw squares

  • Lect0131d.java: Using a Method with mulitple parameters to draw squares- This code has errors to highligh how parameters must match

  • Lect0131e.java: Using a Method that takes a color as a parameter when drawing squares

  • Lect0202c.java: Using while looks to create a drawSquare() and a drawOctagon() method

  • Lect0202e.java: Repeatedly call drawOctagon() to create a complex shape

  • Lect0207a.java: Using a loop variable to determine the size of a drawn shape

  • Lect0207b.java: Using a loop variable to determine the size and color of a drawn shape

  • Lect0207c.java: Using a loop variable to determine the size and color of a drawn shape, version 2

  • Lect0221b.java: Removing the color green from all pixels in a picture

  • Lect0221c.java: Removing the color green from all pixels in a picture in a Method

  • Lect0221d.java: Making a fake sunset by doubling the amount of red at every pixel in a picture

  • Lect0221e.java: Making a fake sunset by reducing the amount of green and blue at every pixel in a picture

  • Lect0221f.java: Making a fake sunset by reducing the amount of green and blue version 2

  • Lect0221g.java: A program to highlight the naute of the double loop used with picture manipulation

  • Lect0223c.java: Make a Gray Scale (Black&White) Picture using a weighted average of color values

  • Lect0228f.java: Changing red to blue in a picture - Using color comparison

  • Lect0301c.java: Making a 4 color posterized image (blue, purple, green, yellow)

  • Lect0308b.java: Copy a picture twice horizontally (side-by-side) into the same final image

  • Lect0308c.java: Copy a picture three times horizontally (side-by-side) into the same final image

  • Lect0308d.java: Copy a picture twice horizontally (side-by-side) where second is a mirrored image

  • Lect0308e.java: Copy a picture twice horizontally (side-by-side) where first is a mirrored image

  • Lect0308f.java: Copy a picture twice horizontally (side-by-side) where first is mirrored from left-to-right and the second is mirrored from top-to-bottom

  • Lect0405c.java: Triples the volume of a sound - used to highlight clipping

  • Lect0405d.java: Qradruples the volume of a sound and "solves" clipping

  • Lect0410a.java: Normalize a sound file (Maximize the amplitude WITHOUT causing clipping)

  • Lect0412b.java: Join two sounds into a single sound. First one plays, then the second plays.

  • Lect0412c.java: Crop a sound into mulitple pieces and the join those pieces back together.

  • Lect0417a.java: Extracting digits from a sound file: Prep for extraction part of Project 4

  • Lect0419c.java: Code to determine the ascii digits of the ascii characters in a string

  • QuickSort.java: Code to sort an array using the Quick Sort algorithm
Topic attachments
I Attachment Action Size Date Who Comment
Java source code filejava Lect0119a.java manage 0.7 K 2012-01-20 - 05:04 UnknownUser Simple Java Program with variables and println statements
Java source code filejava Lect0124a.java manage 2.1 K 2012-01-25 - 16:11 UnknownUser Guess the missing Digit program
Java source code filejava Lect0126a.java manage 1.4 K 2012-01-26 - 22:40 UnknownUser Turtle drawing program
Java source code filejava Lect0131a.java manage 1.4 K 2012-02-01 - 14:22 UnknownUser Drawing multiple squares with a Turtle
Java source code filejava Lect0131b.java manage 1.8 K 2012-02-01 - 14:23 UnknownUser Using a Method to draw multiple squares
Java source code filejava Lect0131c.java manage 2.4 K 2012-02-01 - 15:54 UnknownUser  
Java source code filejava Lect0131d.java manage 2.6 K 2012-02-01 - 15:53 UnknownUser  
Java source code filejava Lect0131e.java manage 3.2 K 2012-02-01 - 15:56 UnknownUser Using a Method that takes a color as a parameter when drawing squares
Java source code filejava Lect0131f.java manage 3.3 K 2012-02-01 - 15:57 UnknownUser Drawing on a Picture instead of on a World
Java source code filejava Lect0202a.java manage 3.3 K 2012-02-02 - 22:29 UnknownUser Accessing a file with the name hardcoded into the program
Java source code filejava Lect0202b.java manage 3.5 K 2012-02-02 - 22:29 UnknownUser  
Java source code filejava Lect0202c.java manage 4.0 K 2012-02-02 - 22:32 UnknownUser Using while looks to create a drawSquare() and a drawOctagon() method
Java source code filejava Lect0202d.java manage 4.3 K 2012-02-02 - 22:33 UnknownUser using a method drawCircle()
Java source code filejava Lect0202e.java manage 4.4 K 2012-02-02 - 22:34 UnknownUser Repeatedly call drawOctagon() to create a complex shape
Java source code filejava Lect0207a.java manage 4.4 K 2012-02-08 - 20:10 UnknownUser Using a loop variable to determine the size of a drawn shape
Java source code filejava Lect0207b.java manage 4.6 K 2012-02-08 - 20:11 UnknownUser Using a loop variable to determine the size and color of a drawn shape
Java source code filejava Lect0207c.java manage 4.7 K 2012-02-08 - 20:11 UnknownUser Using a loop variable to determine the size and color of a drawn shape, version 2
Java source code filejava Lect0209a.java manage 5.5 K 2012-02-09 - 22:47 UnknownUser Examples of while loops
Java source code filejava Lect0221a.java manage 1.3 K 2012-02-23 - 15:46 UnknownUser Modifying the color at a single pixel in a picture.
Java source code filejava Lect0221b.java manage 1.2 K 2012-02-23 - 15:48 UnknownUser Removing the color green from all pixels in a picture
Java source code filejava Lect0221c.java manage 1.4 K 2012-02-23 - 15:49 UnknownUser Removing the color green from all pixels in a picture in a Method
Java source code filejava Lect0221d.java manage 1.5 K 2012-02-23 - 15:52 UnknownUser Making a fake sunset by doubling the amount of red at every pixel in a picture
Java source code filejava Lect0221e.java manage 1.6 K 2012-02-23 - 15:54 UnknownUser Making a fake sunset by reducing the amount of green and blue at every pixel in a picture
Java source code fileclass Lect0221f.class manage 1.8 K 2012-02-23 - 15:56 UnknownUser Making a fake sunset by reducing the amount of green and blue versiono 2
Java source code filejava Lect0221f.java manage 1.6 K 2012-02-23 - 15:58 UnknownUser Making a fake sunset by reducing the amount of green and blue version 2
Java source code filejava Lect0221g.java manage 0.8 K 2012-02-23 - 15:59 UnknownUser A program to highlight the naute of the double loop used with picture manipulation
Java source code filejava Lect0221h.java manage 1.7 K 2012-02-23 - 16:00 UnknownUser Creating a color negative of a picture
Java source code filejava Lect0223a.java manage 1.8 K 2012-02-24 - 17:03 UnknownUser Create Color Negative of a picture using for loops
Java source code filejava Lect0223b.java manage 1.9 K 2012-02-24 - 17:05 UnknownUser Make a Gray Scale (Black&White) Picture
Java source code filejava Lect0223c.java manage 2.0 K 2012-02-24 - 17:06 UnknownUser Make a Gray Scale (Black&White) Picture using a weighted average of color values
Java source code filejava Lect0223d.java manage 2.0 K 2012-02-24 - 17:07 UnknownUser Modifying the color of a picture
Java source code filejava Lect0228a.java manage 1.3 K 2012-03-01 - 19:33 UnknownUser Use of if statement
Java source code filejava Lect0228b.java manage 1.6 K 2012-03-01 - 19:34 UnknownUser Use of if-else statement
Java source code filejava Lect0228c.java manage 2.1 K 2012-03-01 - 19:35 UnknownUser Two color posterization - Black & White
Java source code filejava Lect0228d.java manage 2.1 K 2012-03-01 - 19:36 UnknownUser Two color posterization - Purple & Green
Java source code filejava Lect0228e.java manage 2.1 K 2012-03-01 - 19:38 UnknownUser Two color posterization - Yellow & Cyan
Java source code filejava Lect0228f.java manage 1.9 K 2012-03-01 - 19:39 UnknownUser Changing red to blue in a picture - Using color comparison
Java source code filejava Lect0301a.java manage 2.5 K 2012-03-01 - 22:39 UnknownUser Code to highlight the use of the return statement
Java source code filejava Lect0301b.java manage 2.3 K 2012-03-01 - 22:40 UnknownUser Making a red/green 3D composition image
Java source code filejava Lect0301c.java manage 2.4 K 2012-03-01 - 22:43 UnknownUser Making a 4 color posterized image (blue, purple, green, yellow)
Java source code filejava Lect0306a.java manage 1.9 K 2012-03-08 - 17:19 UnknownUser Red-eye reduction: attempt 1
Java source code filejava Lect0306b.java manage 1.9 K 2012-03-08 - 17:20 UnknownUser Red-eye reduction: attempt 2
Java source code filejava Lect0306c.java manage 2.1 K 2012-03-08 - 17:21 UnknownUser Red-eye reduction: attempt 3
Java source code filejava Lect0306e.java manage 2.1 K 2012-03-08 - 17:25 UnknownUser Edge Detection: attempt 1
Java source code filejava Lect0306f.java manage 2.3 K 2012-03-08 - 17:25 UnknownUser Edge Detection: attempt 2
Java source code filejava Lect0308a.java manage 1.7 K 2012-03-09 - 13:20 UnknownUser Make a copy of a picture
Java source code filejava Lect0308b.java manage 1.8 K 2012-03-09 - 13:21 UnknownUser Copy a picture twice horizontally (side-by-side) into the same final image
Java source code filejava Lect0308c.java manage 2.0 K 2012-03-09 - 13:22 UnknownUser Copy a picture three times horizontally (side-by-side) into the same final image
Java source code filejava Lect0308d.java manage 1.9 K 2012-03-09 - 13:24 UnknownUser Copy a picture twice horizontally (side-by-side) where second is a mirrored image
Java source code filejava Lect0308e.java manage 1.9 K 2012-03-09 - 13:24 UnknownUser Copy a picture twice horizontally (side-by-side) where first is a mirrored image
Java source code filejava Lect0308f.java manage 2.1 K 2012-03-09 - 13:26 UnknownUser Copy a picture twice horizontally (side-by-side) where first is mirrored from left-to-right and the second is mirrored from top-to-bottom
Java source code filejava Lect0313a.java manage 2.7 K 2012-03-14 - 12:42 UnknownUser Reducing the size of a picture by half
Java source code filejava Lect0313b.java manage 2.1 K 2012-03-14 - 12:43 UnknownUser Reducing the size of a picture by half: 2nd algorithm
Java source code fileclass Lect0313c.class manage 2.1 K 2012-03-14 - 12:44 UnknownUser Reducing the size of a picture by half: 2nd algorithm
Java source code filejava Lect0313d.java manage 2.5 K 2012-03-14 - 12:45 UnknownUser Changing the size of a picture
Java source code filejava Lect0315a.java manage 1.9 K 2012-03-16 - 12:53 UnknownUser Flip a picture along its main diagonal
Java source code filejava Lect0315b.java manage 1.9 K 2012-03-16 - 12:54 UnknownUser Rotate a picture 90 degrees clockwise
Java source code filejava Lect0315c.java manage 1.9 K 2012-03-16 - 12:55 UnknownUser Copy a picture
Java source code filejava Lect0315d.java manage 2.1 K 2012-03-16 - 12:56 UnknownUser Crop a picture
Java source code filejava Lect0403a.java manage 0.6 K 2012-04-05 - 18:50 UnknownUser Open a sound file and play/explore it
Java source code filejava Lect0405a.java manage 1.4 K 2012-04-06 - 02:14 UnknownUser Doubles the volume of a sound
Java source code filejava Lect0405b.java manage 1.4 K 2012-04-06 - 02:15 UnknownUser Cuts the volume of a sound in half
Java source code filejava Lect0405c.java manage 1.4 K 2012-04-06 - 02:18 UnknownUser Triples the volume of a sound - used to highlight clipping
Java source code filejava Lect0405d.java manage 1.6 K 2012-04-06 - 02:19 UnknownUser Qradruples the volume of a sound and "solves" clipping
Java source code filejava Lect0410a.java manage 2.4 K 2012-04-13 - 12:30 UnknownUser Normalize a sound file (Maximize the amplitude WITHOUT causing clipping)
Java source code filejava Lect0412a.java manage 1.9 K 2012-04-13 - 12:31 UnknownUser Combine two sounds so they occur at the same time
Java source code filejava Lect0412b.java manage 1.7 K 2012-04-13 - 12:33 UnknownUser Join two sounds into a single sound. First one plays, then the second plays.
Java source code filejava Lect0412c.java manage 2.5 K 2012-04-13 - 12:35 UnknownUser Crop a sound into mulitple pieces and the join those pieces back together.
Java source code filejava Lect0417a.java manage 1.3 K 2012-04-18 - 19:09 UnknownUser Extracting digits from a sound file: Prep for extraction part of Project 4
Java source code filejava Lect0419a.java manage 1.4 K 2012-04-19 - 20:44 UnknownUser Code to extract values from a Sound file
Java source code filejava Lect0419c.java manage 1.5 K 2012-04-19 - 20:45 UnknownUser Code to determine the ascii digits of the ascii characters in a string
Java source code filejava QuickSort.java manage 5.3 K 2012-04-24 - 16:49 UnknownUser Code to sort an array using the Quick Sort algorithm
Java source code filejava SelectionSort.java manage 2.8 K 2012-04-24 - 16:48 UnknownUser Code to sort an array using the Selection Sort algorithm
Java source code filejava Template.java manage 0.6 K 2012-01-19 - 19:41 UnknownUser Template for Java programs
Topic revision: r24 - 2012-04-24 - 16:49:22 - Main.troy
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF