CS251L - Fall 2012

Intermediate Programming

Section 002


Jan Monterrubio

Email: janmonterrubio@gmail.com

Office: FEC 3rd Floor Lounge or (FEC 309)

Office Hours:

Wednesday 3 - 5 PM

Friday 2 - 4 PM

Full TA and Tutor Schedule

If these times don't work email me and I'll make sure you get the help you need.


Birds and Tweets

September 4th, 2012

Background

Classification of birds was one of Charles Darwin's favorite hobbies. Tweeter, the newly founded social network has hired you to create a database of birds. Tweeter is interested in the sounds birds make, and whether or not they're correlated to the color of their feathers or whether the pitch is determined by the bird's ability to fly.

Requirements

  • You must have a file named Bird.java
  • Your Bird class definition MUST have the following fields
  • Your bird class MUST have the following public methods
  • Your class MUST have the following STATIC methods
  • Your class MUST have the following CONSTRUCTORS
  • Write a Driver.java or BirdTest.java file which prints out the following information:
    Name: BirdName
    Flies: (True or False)
    Height: X cm
    Weight: Y Kg
    Colors: 
    Blue
    Red
    
    As well as the BirdCount, ie "BirdCount: 5". To compile both files all you have to do is javac the both files, ie javac Bird.java BirdTest.java. We will not grade your driver program.
  • This is a sample output file
  • Grading

  • 75% meets requirements
  • 25% code style. You will have to write PROPER javadoc comments for this weeks assignment
  • Tips

  • Read the whole lab before starting
  • Refer to the skeleton file
  • Refer to chapter 2 in your book (The Java Programming Language, 4th Edition)
  • Ask questions if you need help
  • Submissions

  • Send your file "Bird.java" to the email cs251f12ATgmailDOTcom . The Subject of your file must be Formated as such NAME-LASTNAME-SECTION DateOfLab. IE, my submission would be Jan-Monterrubio-002 9/4