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...
I been reading around about what a programmer should know and found tips about work experience.(no where near that point)
Most intresting topic I read was "You live or die by your text editor, so...
Thank you for the website!
and programming in general.
I just finish taking my math classes and started my core classes.
Currently taking programming and algorithm development with java.
Just...
Hi,
My name is Julian and my major is Computer Science. Just wondering if there any programming magazines or web site with news about programming? Or any type of resource to keep me update on the...
if u make a jbutton then put this in side of it
System.exit(0);
for example;
private class ExitButtonHandler implements ActionListener{
public void actionPerformed(ActionEvent e){
...
not sure what u trying to do, but u need something like this.
public static void main(String[] args) throws FileNotFoundException{
Scanner inFile = new Scanner(new FileReader("File")); // reads...
SOLVE. LOL
general form is
sum=o;// initialized
while ( condition)
{
...
sum= sum + num; // update the sum.
count++ // keeps a count.
...
}// end while loop
Thanks! HelloWorld922
I think this is what my teacher is looking for:
new improve code:
import java.util.*;
import java.io.*;
public class average {
public static double...
i need to read and print certian files, but i can not test my programm because my computer doesnt allow acess to my programm to run. I use netbeans and run it as administrator, but it doesnt work.
...
You should omit "another" in the first int variable named response, but when you re-use it in the loop, keep the "another".(nothing major) XD
well written i like it; in fact, i love it. XD
made...
My assignment is to make a programm to read student's name and tests from a file.
1)method to calculate average.
2)method to evaluate grade.
This is my java code.
import java.util.*;
import...