Help makeing a program that does the following(enter to read more)

this is what i have and i am now stuck
import java.awt.geom.Point2D;
public class Lines
public Lines(double x, double y, double m)
x1 = x;
y1 = y;
m = m;
public Lines(double x ,double y ,double x2, double y2)
x1 = x;
y1 = y;
x2 = x2;
y2 = y2;
public Lines(double x,double y, double m, float b)
x1 = x;
y1 = y;
m = m;
b = b;
public Lines(double x)
x1=x;
y1=0;
public double x1;
public double y1;
public double x2;
public double y2;
public double m;
public double b;
import java.util.Scanner;
public class lines_viewer
public static void main(String[] args)
Scanner in = new Scanner(System.in);
System.out.println("enter an x coordinate");
double x1 = in.nextDouble();
System.out.println("enter a y coordinate");
double y1 = in.nextDouble();
System.out.println("enter a slope coordinate");
double m = in.nextDouble();
System.out.println("enter another x coordinate");
double x2 = in.nextDouble();
System.out.println("enter another y coordinate");
double y2 = in.nextDouble();
System.out.println("enter a y intercept coordinate");
float b = in.nextFloat();
Lines one = new Lines(x1,y1,m);
Lines two = new Lines(x1,y1,x2,y2);
Lines three = new Lines(x1,y1,m,b);
Lines four = new Lines(x1);
one.makeLine();
i need to be Proxy-Connection: keep-alive
Cache-Control: max-age=0
le to make and find a line using one of four ways
-giving a point and a slope
-giving two points
-equation in slope-intercept form y=mx+b
-equation x=a if the line is verticle
implement a class Line with four constructors, coorresponding to the four cases above. Implementing methods:
boolean intersects(Line other)
boolean equals(Line other)
boolean isPa

Stick to your other thread: [http://forums.sun.com/thread.jspa?threadID=5343282&tstart=0]
Clarify your question there and repost your code with code tags, as I asked you to in reply 1.

Similar Messages

  • Is there and app that does the following. Multiple apps are showing a clock in different rooms, all are synced together, one ipad is a master ipad and if you change the time on it all other ipads change the time

    Is there and app that does the following. Multiple apps are showing a clock in different rooms, all are synced together, one ipad is a master ipad and if you change the time on it all other ipads change the time

    None of the spreadsheet apps that work with Excel files offer anything like full native support in iOS.  Apple's own Numbers app pairs down features for the iOS version.  The hardware is simply not up to what a true computer is capable of, so all apps like QuickOffice, DocumentsToGo, Numbers and so forth offer reduced features from their computer-version counterparts.
    I think a custom app will be your only real choice, be it a fully standalone app, or something built in filemaker or some other db-based platform.

  • PLEASE HELP making a program that uses sudo commands

    hey
    is there anyway to make a program run sudo commands
    i have a problem because in a terminal it would ask you to input a password.
    is there a way to use a fake keyboard program to input the password in the back ground
    of my java application or some how run sudo commands? my application relies on some outputs of these commands.
    please help thanks.

    ill tell you a bit about my program im making.
    i have a wireless usb that i have to switch back and forth to get my paticullar drivers to
    do certain things e.g. one is for web browsing and the other one has packet injection.
    by typing sudo modprobe ect.. i can switch through a terminal. which requires me to type in a password.
    iv made a application which uses the
    Runtime.getRuntime().exec("sudo ...."); it has 2 buttons to switch from diffrent drivers and always runs at start up.
    just a big problem i cant use sudo it just freezes when i start and click on the buttons. and doesnt ask me for a password.
    can anyone help thanks

  • Hi.  I iMac, Mac OS X 10.6.8  Lately it does not update the program.  Writes the following: "Unable to install the update iTunes. An unexpected error occurred." What you need to do that right, that programs can be updated again?

    I iMac, Mac OS X 10.6.8  Lately it does not update the program.  Writes the following: "Unable to install the update iTunes. An unexpected error occurred." What you need to do that right, that programs can be updated again?

    you will have the most up to date itunes available for your os 10.6.8. to get a newer version you will have to upgrade to a newer os.

  • I got the following for Adobe Reader that there was an issue with it. C:\Program Files (x86)\Adobe\Reader 11.0\Reader\NPSWF32.dll file How do I fix this? Thanks.

    How can I fix this problem. I got the following for Adobe Reader that there was an issue with it.  C:\Program Files (x86)\Adobe\Reader 11.0\Reader\NPSWF32.dll file

    Try uninstalling using http://labs.adobe.com/downloads/acrobatcleaner.html then reinstall.

  • Please Help - I am looking for an mp3 player that has the following features

    Hi, I am looking for an mp3 player that has the following features:
    1) Either a 30GB or more HDD, OR a sd OR a micro SD card slot for a 2GB card. (Note, I can buy an adapter so my sd cards fit into a compact flash slot. However, I did look at the Zen Vision M but I didn't see how to delete tracks from?my playlists.)
    2) I need to be able to delete tracks in my playlists that I create in Windows Media Player (.wpl or .m3u format).
    3) I need to be able to copy these updated playlists back to my pc, either with the usb cable or SD / microSD card.
    Which products meet my needs? I li've in California, USA.
    Thanks,
    Rick

    Thanks! I did not know that. I have been looking for an mp3 player for a long time & did not realize the one I wanted was right in front of my nose! [ at Walmart]

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • I downloader all the Adobe Presenter, looks like everything downloaded but when I open the program I get the following message: The file archive part of Presenter is missing. You need all parts in the same folder

    I downloadedall the Adobe Presenter, looks like everything downloaded but when I open the program I get the following message: The file archive part of Presenter is missing. You need all parts in the same folder

    HI There,
    It seems that Presenter is not fully downloaded. Please check you have downloaded .exe and .7z files successfully. In case you are still facing the issue then please click on the following link to chat with the support :  Chat
    with an Expert
    Regards,
    Mayank

  • Billprint program where does the prior reading value come from? which table

    hi all,
    In billprint pgms  the value is stored in structure ERDZ but i'm not able to find how these values are populated and where?
    i need to know from which table  prior reading and current readings are populated..
    is there any program that triggers the billprint forms, if so how to find it?
    pls suggest those pgm names.
    thanks

    Hello,
    If you have already attached the form in your contract account and you have done your meter read and Billing, you get these values during running of Invoice program.
    Pls look into EABL
    also
    EABLG           MR Reasons in MR Document
    EABLARC         Internal index f. analyzing archivable meter reading results
    Hope this helps
    Rgds
    Rajendra

  • When i run my program, i get the following Error:

    " Error 7 occoured at Open File+.vipen File.
    Possible reasons:
    Labview: File not Found .
    or
    NI-488: Non-existent board.
    Please Help?

    In my experience it usually happens when one of my sub VIs is trying to open
    a file and can't find it. (We don't use the NI-488 boards, so for us, the
    error is due to a problem opening a file. If you are using GPIB boards, the
    problem might be due to a missing GPIB board.)
    Hope this helps.
    Jim
    matrix wrote in message
    news:[email protected]..
    > When i run my program, i get the following Error:
    > " Error 7 occoured at Open File+.vipen File.
    > Possible reasons:
    > Labview: File not Found .
    > or
    > NI-488: Non-existent board.
    > Please Help?
    >
    >

  • What does the following code mean???

    what does the following code mean ??
    fpm.raiseReviewAndSaveEvent(IFPM.EVENT_REVIEW, IFPM.EVENT_SAVE, vcFormEditButtons);
    thanks in advance.
    can you please tell me best site to learn WD4J coding.
    site having lot of WD4J code examples

    Hi,
    While Creating an FPM View we can use this line code.For more details of above line
    [code|http://help.sap.com/erp2005_ehp_04/helpdata/en/fc/ffd8464eb041848ca66749165d8f33/content.htm]
    Please look at these documents for WDJ Example Application. Please go through this documenst.
    [WDJ Application|Web Dynpro Java Tutorials and Samples NW 2004 ] and [Samples for Web Dynpro Java|http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/00b64d9f-fea2-2910-c988-ee2544047f8c] and [Web Dynpro for Java Demo Kit|http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproforJavaDemo+Kit]
    Hope this is help full for u
    Regards
    Vijay

  • VZW sucks, after overcharging me for four months they issued a credit and then charged me for that credit the following month and 2 cost service reps and one supv can't figure out why...THEY SUCK

    Does anyone else find it odd VZW starts every conversation with the standard "this call may be recorded" line, but if you imply you are recording them, they freak out and go silent.  It's amazing they never want to stand by what they say.  I was overcharged and basically screwed for four months, they then issues me a credit and then CHARGED me for that credit the following month.  I explained it in their second grade terms so they could understand and still NO ONE gets it.
    RIDICULOUS

    Grothka wrote:
    First, can you elaborate a bit on what the concern with the credits are? It is really hard to give advice about the scenario without really knowing what is happening. #2: I don't find it odd at all that vzw wants to record their calls but not have customers record them. In fact I can't imagine that any medium-large company (or many small companies either) would be comfortable with their rep's being recorded seeing as they could make mistakes or just decide to not be appropriate. VZW records their calls for 'quality and training purposes.' Meaning that they are doing it in an attempt to improve their customer service internally, and if it means that they can go back and listen to a call to see if a rep made a mistake then that is just gravy. In most cases if a call is listened to and it's found that the rep did lie or make a mistake it will be corrected and handled internall. If, however, a customer records a call there is a pretty good chance that they will blast it all over the world and damage vzw's reputation... this is a problem if vzw would have fixed the issue anyways once they had a chance to listen to the call.
    Thats interesting. Sounds like a fairy tale but interesting.

  • Is there any calendar /contact program that has the depth of power-on Now up-to-date that will run on Lion?

    is there any calendar /contact program that has the depth of power-on Now up-to-date that will run on Lion?

    This can be done easily with ethernet.
    Please follow the instructions strictly.
    To make it easier I want you to do this overnight so you can turn off all your current connection to the internet.
    Just go to the airport fan in to the top right and turn airport off.
    Get ethernet cable and connect the laptop to the TC lan port.. ie <-> ones.
    Press and hold the reset on the TC for about 10sec. until the front led flashes rapidly.
    Open the airport utility.. go to manual setup and change the wireless to off. (so other people around you cannot join your network of one).
    Ignore all the errors.. they won't stop the backup working.
    Go to the TM and reselect the backup target disk as the TC.
    It should start after 2min and run through to completion.
    That is it.. for a backup of many GB it might take a few hours.. so make sure the laptop has power plugged in and the sleep is off.. (on early ones I think this is needed but I am a late arrival to the scene).. sleep doesn't affect later OS.

  • AFTER I DOWNLOADED FIREFOX 4, EVERYTIME I OPEN THE PROGRAM I GET THE FOLLOWING MESSAGE- TYPE ERROR:COMPONENT.CLASSES[CID] IS UNDEFINED. HOW DO I CORRECT THIS?

    After upgrading to firefox 4, everytime I open the program, I get the following message, "TYPE ERROR:conponentclasses undefined." How do I correct this?

    That indicates that you are using an add-on that is not compatible with Firefox 4. For details of how to troubleshoot this to find out what one is causing the problem see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

Maybe you are looking for

  • Subreport shows no images nor formatting when invoked from the portal

    Hi, I am not 100% sure if this is the right forum, but my problem is related to running subreports on the portal. We run OracleAS 10gR2 (10.1.2). I have some reports I created with the builder. They are "registered" on the Portal, i.e., I have create

  • Using .cfr report files in an application

    We are developing an application that sits behind a login. In this application we have several .cfr pages. When we try to access one of the reports the web browser returns a blank page. If we remove the application.cfc file from the root directory th

  • Newbie who needs help!

    I require someone who has a lot of patience as I am a complete dimwit when it comes to computers and I am about to thorw mine out the window. Unfortunately when I brought my mp3 a friend set it all up and i didn't take any notice. I am now trying to

  • Is Clone thread safe?

    I am examining property change class and notice that it does an unsynchronized clone of vector. This makes me wonder if clone is thread safe? it must be or this clone could experience the same problems of copying the vector while its being modified.

  • Regarding po function exit

    Hi all, My requirement is .......in me21 and me22 end users are entering line items in dis order like 1,20,25,14 . I have to modify it to 10,20,30 for existing line items for me22 i have to restrict with erro message.my exit is exit_sapmm06e_012. Ple