Search:

Type: Posts; User: TimoElPrimo

Search: Search took 0.07 seconds.

  1. Replies
    8
    Views
    5,020

    Re: Testing equation of a line

    only mistake i c is the equal method 2 equation are equal if the are multiple of each other rite?
    but how would u write that on java?
    a1=ka2, b1=kb2, c1=kc2 for somne real number k
  2. Replies
    8
    Views
    5,020

    Re: Testing equation of a line

    i got it XD lol

    import javax.swing.*;
    import java.util.*;
    public class Linetype {
    public static void main(String[] args) {
    Scanner ci = new Scanner(System.in);
    Line...
  3. Replies
    8
    Views
    5,020

    Re: Testing equation of a line

    this is my constructor with method. Why it is not working? i try to call it with dot notation, but it doesnt work.

    public class Line {
    private double a2,a1,b2,b1,c2,c1;
    Line(){}
    public...
  4. Replies
    8
    Views
    5,020

    Re: Testing equation of a line

    I be back on like 3hr re-read about user-defined classes and ADTs then try to write these program.
    If the contructor is properly made.
    i can write line1.slope(); and get the slop of line1?
  5. Replies
    8
    Views
    5,020

    Re: Testing equation of a line

    yeah sorry about that!
    my parrallel and perpendicular should be a method!
    and what I wrote in the comment is my plan but I can not do it without making an constructor inside of Line.

    public...
  6. Replies
    8
    Views
    5,020

    Testing equation of a line

    definition of an equation of a line
    Design the class lineType to store line. To store a line, you need to store values of a, b and c. Your class must contain the following operations:
    1) If a line...
Results 1 to 6 of 6