cs is 4 4 u plate

CS 1112
Spring 2012

   

Course

Elsewhere










  halloween photo

 Class 10 — February 8, 2012
  Input empowerment

Examples

Data

Agenda

  • Problem solve using multiple data sources — standard input (keyboard), text files, web pages, and strings
  • Use File for representing an element of file system
  • Use URL for representing locations of web resources

Reading

  • Section 2.9

Problem solving


  wonder woman comic #1

 Class 9 — February 6, 2012
  String theory

Examples

Agenda

  • Gain familiarity with object manipulation using strings as an exemplar

Reading

  • Section 2.3

Survey

Just the facts





graphics past winner graphics past winner graphics past winner graphics past winner
graphics past winner graphics past winner graphics past winner
graphics past winner

 Class 8 — February 3, 2012
 Every picture tells a story

Examples

Reading

  • Section 2.2 and 2.4

Agenda

  • Gain familiarity with object manipulation using graphics and random number generation as exemplars

jpc portrait by luther


  grease soundtrack cover

 Class 7 — February 1, 2012
 Tell me more, tell me more

Examples

Reading

  • Section 2.6 – 2.8

Agenda

  • A major course goal is to enable you to develop your own problem solving-specific representations.

  • I believe to accomplish this goal you need background experiences on the mechanics of object construction and manipulation.

  • The way I recommend is that you use objects built from some of the standard resources that are already available. Out of your experiences can come an understanding and appreciation for the object-oriented approach.

  • We will begin with graphical elements for creating windows and drawing shapes

Objectify

Some important APIs' official documentation

Some important APIs' unofficial documentation



  sun

 Class 6 — January 30, 2012
 You're getting warm

Examples

Readings

  • Section 2.1, 2.7 – 2.8

Agenda

  • Understand expression evaluation and formulation

Ponder

  • While the expression 5 < 10 < 12 makes sense mathematically, it is not a legal Java expression. Why is that? Hint: look at the expression while being cognizant of operator precedence

Remember

  • Converting a decimal to an int requires a cast; e.g.,
        int n1 = (int) ( Math.rint( x ) ); 
    int n2 = (int) ( x );

Check out

Wrap up

Each of the programs we considered today offered something for future problem solving


  taylor swift fearless tour

 Class 5 — January 27, 2012
 Fearlessly we march on

Examples

Readings

  • Section 1.9 – 1.10

  • Section 2.1

Agenda

General problem solving requires two-way communication; that is, getting data and sending information back.

Java provides class Scanner as a means for communicating with an input source. Scanner is very flexible with regard to input sources. Files, web pages, and user input are all acceptable.

We will explore today how to create and use Scanners that read user-supplied numerical inputs.

A very basic way of getting input is to directly call for the user to supply it. Java provides programmers with object System.in as the input counterpart to System.out; that is, System.in is the Java representation of a user's keyboard.

When System.in is specified to be the input source for a Scanner, a program can use the Scanner to process user input.

Your need to know



  bunny

 Class 4 — January 25, 2012
 Hopping down the trail to computational  thinking

Examples

Readings

  • Section 1.8

Agenda

Sophisticated problem solving requires the ability to abstract. A very basic part of abstraction is ability to name a value and to manipulate the value through a referencing of its name.

  • Continue our exploration of primitive types.
  • Introduce variables for naming locations in computer memory where values are stored.
  • Use definition statement to specify the name, type, and initial value associated with a variable.
  • Explore variable assignment.
  • Practice program modification.

For inquiring minds


  Hermes typewriter

 Class 3 — January 23, 2012
 Are you my type

Examples

Readings

  • Sections 1.1 – 1.7

Agenda

Last class we handled a very important task in computational problem solving – basic user communication. This class we are going to

  • Expand our communication skills;
  • Introduce the different types of basics values that Java provides (in programming speak they are called the primitive types);
  • Introduce the notion of operator precedence;
  • Develop an appreciation for writing readable programs.

Linkify


  louvre

 Class 2 — January 20, 2012
You'll only pass this way once

Examples

Readings

  • Sections 1.1 – 1.4

Agenda

  • Convince everyone to become a computing major
  • Introduce terminology to which you should become accustomed
    • Class
    • Method
    • Comment 
    • Whitespace
    • Keyword  
    • public
    • class
    • void
    • Statement
    • Semicolon
    • Library
    • System
    • Dot operator
    • System.out
    • println()
    • Literal
    • String[]
    • Identifiers
    • Translation
    • Interpretation



  movie poster

 Class 1 — January 18, 2012
First day of the rest of your life

Agenda


  tom petty album cover

Early January 2012
The waiting is the hardest part

Practicing structured communication

Write an original, thoughtful haiku and electronically upload it using the class submission system by Noon Tuesday January 17 (the day before the start of classes).

In terms of structure a haiku is a three-line poem with the first line being five syllables, the second seven syllables, and the third line being five syllables. A haiku is not expected to rhyme. A haiku is expected to paint an image regarding feelings and experiences.

Your haiku is to be about your class expectations or concerns. The poem should be appropriate for other class members to read. Students who do not complete this assignment on time are subject to dismissal from the class.

Software development

A major activity occurring throughout the semester is developing the ability to program in the Java language. In order for this to happen you need two pieces of software on your personal computer.

SDK

If you are a Windows user, you need to download and install the Java SDK. The SDK is a free download available from Oracle. There are two versions depending whether your laptop is running 32-bit or 64-bit windows. Most recent laptops are 64-bit. If you are unsure the 32-bit version works for all. 

Mac OS X users have the JDK software pre-installed, so nothing needs to be done with regard to the SDK.

DrJava

After taking care of making sure you have a Java JDK installed, you can download and install DrJava.


Readings

A handbook will be available from the bookstore. The handbook will contain an in-progress textbook and the major course examples. Please bring the handbook to every class meeting.