Off Topic A place to kick back and discuss non-Monte Carlo related subjects. Just about anything goes.

Is anyone here good with writing code in java?

Thread Tools
 
Search this Thread
 
  #1  
Old 02-01-2012, 12:41 PM
red04montels's Avatar
Monte Of The Month -- September 2010
10 Year Member
5 Year Member3 Year Member1 Year Member
Thread Starter
Join Date: Aug 2009
Location: Wisconsin
Posts: 9,378
Default Is anyone here good with writing code in java?

Like the title says, is anyone here good with writing code in java? I have trouble in java and this last assignment has completely lost me. lol here's the assignment, let me know if you can help me out, it would be greatly appreciated!

The assignment is to implement a text-based graphics program using composition,
inheritance relationships and polymorphic behaviors (similar to the one we did in class
together) to the one the author does in chapter 9 of the textbook.


We wish to produce a “shapes” taxonomy that would allow for a hierarchy of graphical
objects; such as Points, Lines, Circles, Rectangles, Cylinders and Cubes to be “drawn”.
In order to keep things simple, our drawing for this assignment will only amount to
sending text out to the console (hence the term “Text Graphics” for our assignment).

Arrange these as classes in a hierarchy and associate drawing behavior with each class
that is sensible to draw. (The Shapes class, for instance, would be an abstract class since there’s no reasonable way to draw a generic shape.) The drawing behavior for this
assignment need only consist of text output to the console that states where the shape is and how it would draw itself (just as we did in the example from class).


In your implementation be sure to use both inheritance and composition where
appropriate. Remember, inheritance is called an “IS-A” relationship and composition is
called a “HAS-A” relationship. This rule-of-thumb design principle works for most
simple taxonomies (such as this one).


You’ll also need to use polymorphism in your implementation (i.e. when implementing
the draw() method) so that each shape draws itself appropriately when sent the
draw() message.
 
  #2  
Old 02-01-2012, 12:43 PM
Join Date: Aug 2011
Location: Lakeland, Florida
Posts: 3,226
Default

It's all over my head. I thought maybe a new brand of coffee. Lol
 
  #3  
Old 02-01-2012, 12:46 PM
Join Date: Jun 2011
Location: Whitney Point,New York
Posts: 1,577
Default

Originally Posted by mousehousemoparman
It's all over my head. I thought maybe a new brand of coffee. Lol
Hahaha:p
 
  #4  
Old 02-01-2012, 01:07 PM
Tadcaster's Avatar
Monte Of The Month -- August 2011
Monte Of The Month -- April 2014
5 Year Member
3 Year Member1 Year Member
Join Date: Apr 2009
Location: Mason, MI USA
Posts: 6,407
Default

Sorry I am old school (RPGILE) Java is not my cup of tea... err I mean coffee
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Space
Off Topic
29
01-15-2013 05:07 PM
knightfan26917
Off Topic
4
01-11-2012 10:15 PM
BlackRainSS
General Monte Carlo Talk
8
08-07-2011 09:58 PM
knightfan26917
Off Topic
4
05-15-2011 01:13 PM
SpinEm_90
Detailing
18
04-26-2011 12:07 PM



Quick Reply: Is anyone here good with writing code in java?



All times are GMT -5. The time now is 08:39 AM.