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
Type: Posts; User: TimoElPrimo
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
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...
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...
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?
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...
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...