Tuesday, November 22, 2011

Homework 10 - FlatStanley.java

You are to create a console application called FlatStanley which represents virtual rectangles.

FlatStanleycontains:
  • Two int data fields, l and w
  • One two-argument constructor which sets the values of l and w (requires error trapping)
  • Methods to get and set (set requires error trapping)
  • Methods to calculate and return the perimeter and area of a FlatStanley

Sample Output
Here is a screenshot of my code running.

Flat Stanley output

Refer to the deliverables post for comment formatting and required program identification information.

Due Date:
Monday, November 28th, 8:00am