Taperssection.com

Gear / Technical Help => Post-Processing, Computer / Streaming / Internet Devices & Related Activity => Topic started by: B on October 23, 2003, 08:55:56 AM

Title: anybody know java?
Post by: B on October 23, 2003, 08:55:56 AM
im sittin here in computer science class, workin on some program which does nothing and not doin too well on it...just wondering who else out there knows java, or c++, basic, html,  or whatever other programming languages there are
Title: Re:anybody know java?
Post by: DaryanLenz on October 23, 2003, 09:14:49 AM
I know a bit of java...system, out void main..blah, blah.  I hated it, but I could maybe help with basic stuff.

Daryan
Title: Re:anybody know java?
Post by: Kevin on October 23, 2003, 09:57:39 AM
i pretty familiar and took the same class, i can try to help you out.  Whats the problem?
Title: Re:anybody know java?
Post by: scb on October 23, 2003, 10:32:50 AM
what's the assignment?

Title: Re:anybody know java?
Post by: B on October 23, 2003, 06:13:43 PM
well, theres a website with the instructions on it, but you cant access it out of the baltimore county public schools network, so ill do the best to explain it.
we're supposed to be writing a program which prompts to the user and inputs the length and width for a rectangle - setting those as the variables for the dimensions.  then it prompts to the user and asks for a degree amount and dimensional decrease. it takes those variables and displays lots of other rectangles, which are stationary, rotated around a central point, getting smaller and smaller as they go along...i dont really expect any help, but thanks, guys
Title: Re:anybody know java?
Post by: Sean Gallemore on October 24, 2003, 06:42:40 AM
shit, I took C 2 quarters ago and forgot all that shit, sorry for the non-help, but I sympathize, +
Title: Re:anybody know java?
Post by: B on October 24, 2003, 07:45:28 AM
its all good man
Title: Re:anybody know java?
Post by: B on October 24, 2003, 08:58:06 AM
i doubt any of you could access this, but heres a link to the page
Title: Re:anybody know java?
Post by: MattD on October 24, 2003, 04:38:38 PM
The link would help :-p
Title: Re:anybody know java?
Post by: Sean Gallemore on October 24, 2003, 07:13:51 PM
lol, yes, link please, borf
Title: Re:anybody know java?
Post by: Nick in Edinboro on October 25, 2003, 03:14:01 AM
I'm fluent in C++ (OOP stylie), Assembly, COBOL, VB, ASP, JavaScript, SQL, XML, HTML, Perl, PHP, etc.. if yer still having problems drop a line and I'll do my best to help ya out in the morning tomorrow ;D
Title: Re:anybody know java?
Post by: wbrisette on October 25, 2003, 07:25:33 AM
COBOL

Man, that's about as useful as my Fortran and Modula-2 stuff I took in college. ;-)

Wayne
Title: Re:anybody know java?
Post by: scb on October 25, 2003, 08:02:41 AM
>>Man, that's about as useful as my Fortran and Modula-2 stuff I took in college. ;-)<<

this country's securities transactions rely HEAVILY on cobol.  it sucks, but wow, it's still WIDELY used
Title: Re:anybody know java?
Post by: B on October 26, 2003, 12:30:04 PM
whoops, sorry about that link stuff
Title: Re:anybody know java?
Post by: B on October 27, 2003, 08:51:07 AM
i got it all under control - i figured it out and turned it in today...here it is if anybody wants to see it
import apcslib.*;

public class Rectangle2

{
   // variable declaration
   
   private double myX;
   private double myY;
   private double myWidth;
   private double myHeight;
   private static DrawingTool pen = new DrawingTool(new SketchPad(500, 500));
   private double myDirection;
   
   // constructors
   
   public Rectangle2()
   {
      pen.move(0,0);
   }
   public Rectangle2(double x, double y, double width, double height)
   {
      myX = x;
      myY = y;
      myWidth = width;
      myHeight = height;
   }
      
   // methods
   
   public double getPerimeter()
   {
      return (2 * myWidth) + (2 * myHeight);
   }
   public double getArea()
   {
      return (myWidth * myHeight);
   }
   public void setDirection(double direction)
   {
      myDirection = direction;
   }   
   public void setWidth(double w)
   {
      myWidth = w;
   }
   public double getDirection()
   {
      return myDirection;
   }
   public void setXPos(double x)
   {
      myX = x;
   }
   
   public void setYPos(double y)
   {
      myY = y;
   }
   
   public void draw()
   {
      pen.up();
      pen.move(myX,myY);
      pen.down();
      pen.setDirection(myDirection);
      pen.forward(myHeight);
      pen.turnLeft(90);
      pen.forward(myWidth);
      pen.turnLeft(90);
      pen.forward(myHeight);
      pen.turnLeft(90);
      pen.forward(myWidth);
   }
   
   public void drawString(String str, double x, double y)
   {
      pen.up();
      pen.move(x,y);
      pen.drawString(str);
   }   
   
   public double getX()
   {
      return myX;
   }
   
   public double getY()
   {
      return myY;
   }
   
   public double getWidth()
   {
      return myWidth;
   }
   
   public double getHeight()
   {
      return myHeight;
   }
}



import apcslib.*;

public class MethodsRect
{
   public static void main(String[] args)
   {
      Rectangle2 rect = new Rectangle2(-50,160,200,50);
      
      rect.setDirection(90);
      rect.draw();
      rect.drawString("Area = " + rect.getArea(),-225,175);
      rect.drawString("Perimeter = " + rect.getPerimeter(),-225,195);
      rect.drawString("Width = " +rect.getWidth(),-200,145);
      rect.drawString("Height = " +rect.getHeight(),-35,185);
      
      Rectangle2 rectA = new Rectangle2 (-10,0,200,50);
      
      double turnInc = 30;
      double widthDec = 10;
      
      rectA.setDirection(270);
      rectA.setDirection(rectA.getDirection());
      rectA.setWidth(rectA.getWidth());
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
      rectA.setDirection(rectA.getDirection() - turnInc);
      rectA.setWidth(rectA.getWidth() - widthDec);
      rectA.draw();
   }
}
Title: Re:anybody know java?
Post by: Cooker on October 27, 2003, 08:29:43 PM
cobol programmers set their own wage in this area.
Title: Re:anybody know java?
Post by: Nick in Edinboro on October 27, 2003, 09:30:44 PM
Where do you live cooker ;D  Just finishing COBOL II this semester.. Had two years here at college and about 3 in high school at a Vo-Tech.. You could say I'm well versed in the archaic language.  Wonder how much it pays, couldn't see going from an ASP programmer now to COBOL, talk about falling back about 30 years.. ::)

I bitch all the time about having to learn a language which hasn't been updated since 1985, but a LOT of companies still use it.  From insurance (Erie Insurance is heavily dependant) to manufacturing it's still out there printing checks and reports.. It's a great report writer, that's about it..

Also, forgot to mention, if your fluent in COBOL you can pick up SAP's ABAPI language used for customizing the ERP software solution SAP.  That's nice money if there's a need for it around your area, my company just got up and running with it in Q1 of this year.  Lot of money thrown around for sure...

Get geeky now  :nightfevah:

Title: Re:anybody know java?
Post by: scb on October 27, 2003, 09:36:38 PM
move 'cobolsucks' to ws-out-rec
Title: Re:anybody know java?
Post by: blu666z on October 28, 2003, 01:34:36 AM
RPG in da house!

-Kevin
Title: Re:anybody know java?
Post by: B on October 28, 2003, 08:45:42 AM
w3rd....i could write some mad text based in basic
Title: Re:anybody know java?
Post by: smanky on October 31, 2003, 01:06:05 AM
sooo... anyone want to write an assembler in C for me?  :P  ;D