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
-
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
-
I know a bit of java...system, out void main..blah, blah. I hated it, but I could maybe help with basic stuff.
Daryan
-
i pretty familiar and took the same class, i can try to help you out. Whats the problem?
-
what's the assignment?
-
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
-
shit, I took C 2 quarters ago and forgot all that shit, sorry for the non-help, but I sympathize, +
-
its all good man
-
i doubt any of you could access this, but heres a link to the page
-
The link would help :-p
-
lol, yes, link please, borf
-
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
-
COBOL
Man, that's about as useful as my Fortran and Modula-2 stuff I took in college. ;-)
Wayne
-
>>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
-
whoops, sorry about that link stuff
-
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();
}
}
-
cobol programmers set their own wage in this area.
-
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:
-
move 'cobolsucks' to ws-out-rec
-
RPG in da house!
-Kevin
-
w3rd....i could write some mad text based in basic
-
sooo... anyone want to write an assembler in C for me? :P ;D