Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 2443 points

Dayna

Favorite Answers17%
Answers78
  • Am I pregnant?

    Okay, so I don't remember the exact day my fiance and I had unprotected sex. Off and on since this month began, several times a week. Okay, now done explaining my love life .-. Anyways, today I woke up discharging waaaay more than normal. Then, it was pink with spots of blood. I know it is not my period. It's far too light and I'm not due till around the 24th of this month. I've never bled like this before (I am not a virgin, and lost it to my fiance quite awhile ago). It's a really light pink and looks to be mixed with discharge, which is unusual. I've been having weird cravings for about a week and have even been sickish some days. Not sure if that is correlated with being pregnant or not.

    If you experience any bleeding like this before a confirmed pregnancy, your input would really be appreciated! Thank you for your time in advance for giving your opinion. :) I'll be taking the test around the 5th of next month (just to be certain).

    2 AnswersPregnancy6 years ago
  • Can I become pregnant? Is there a chance, or should I be okay?

    I've only been on the pill 3 days now. I have anorexia, so my period was slowing down to a stop (but I did have my period last month, but irregular). I looked up my ovulation time and it said from today to the 12th. I had intercourse yesterday (unprotected).

    Can I be pregnant?

    2 AnswersPregnancy6 years ago
  • Attachment image

    SQL Question?

    How do I get the cus_code and the subtotal to not overlap like that in the same spot?

    2 AnswersProgramming & Design6 years ago
  • Attachment image

    SQL Oracle Issue: Column Overlapping?

    my column cus_code and subtotal are overlapping somehow? How can I fix that so they aren't taking the same space but are formatted like the other columns. The values are resting on top of each other for those 2 messed up columns. :(

    1 AnswerSoftware6 years ago
  • Java: Selection Sort?

    I'm having an error pop up with the "swap" in that part of the code. If you can tell me where I am going wrong, that'd be great!

    package musicSort;

    import java.io.FileNotFoundException;

    import java.util.List;

    import java.util.Scanner;

    public class SortingPractice {

    static Scanner console = new Scanner(System.in);

    public static void main(String[] args) throws FileNotFoundException {

    // DECLARE DATA MEMEBERS

    int counter = 0;

    System.out.println("This program will take 10 numbers and sort them."

    + "\n");

    // INITIALIZE ARRAY

    int[] arrayList = new int[10];

    // FOR LOOP TO GIVE VALUES TO arrayList

    for (counter = 0; counter < 10; counter++) {

    // DECLARE INSTANCE VARIABLES

    int inputNum;

    System.out.print("Please enter an integer: ");

    inputNum = console.nextInt();

    arrayList[counter] = inputNum;

    System.out.println(arrayList[counter]);

    } // END OF FOR LOOP

    // SELECTION SORT

    int i, j;

    int iMin = 0;

    for (j = 0; j < 9; j++) {

    iMin = j;

    for (i = j + 1; i < 10; i++) {

    if (arrayList[i] < arrayList[iMin])

    iMin = i;

    }

    }

    if (iMin != j)

    swap(arrayList[j], arrayList[iMin]); <-- The "swap" is showing an error.

    }// END OF MAIN

    }// END OF CLASS

    1 AnswerProgramming & Design7 years ago
  • Java: JButton: How Can I specifically make it so that I can change draw_triangle to false when a button is clicked?

    package lab3p2;

    import java.awt.Checkbox;

    import java.awt.Graphics;

    import java.awt.event.ActionEvent;

    import java.awt.event.ActionListener;

    import javax.swing.event.ChangeEvent;

    import javax.swing.JFrame;

    import javax.swing.JButton;

    import javax.swing.event.ChangeListener;

    // Basic GUI class that draws a triangle.

    public class Lab3Triangle extends JFrame {

    /**

    * main - this is where the program starts

    * @param args

    */

    public static void main(String[] args) {

    Lab3Triangle window = new Lab3Triangle("Triangle");

    }

    /**

    * Class data members:

    * Default serial version id

    */

    private static final long serialVersionUID = 1L;

    /**

    * Instance data members

    */

    private boolean draw_triangle = true;

    private JButton button1;

    /**

    * Constructor with a String to be used as the title

    * @param string

    */

    public Lab3Triangle(String title) {

    setTitle( title );

    setBounds( 100, 100, 400, 300);

    setLayout(null);

    button1= new JButton("Hide/Show");

    button1.setBounds(90,200,100,30);

    add(button1);

    setDefaultCloseOperation( EXIT_ON_CLOSE );

    setVisible(true);

    }

    @Override

    public void paint(Graphics g) {

    super.paint(g);

    if (draw_triangle){

    g.drawLine( 100, 200, 200, 200);

    g.drawLine( 200, 200, 150, 100);

    g.drawLine( 150, 100, 100, 200);

    }

    }

    }

    1 AnswerProgramming & Design7 years ago
  • Java: JButton: How can I make an if/while statement (using ActionListener e) that when a button is clicked, some other variable is changed?

    For example:

    boolean draw_triangle = true;

    When the button is clicked, I want that variable to be turned to false. I will use "repaint()" as well. I have imported Graphics, ActionEvent, ActionListener (awt) and JFrame, JButton (swing).

    The whole program is written so that when a button is clicked, the picture of a triangle will disappear and then reappear if the button is clicked again.

    Thanks for any help/hints!

    1 AnswerProgramming & Design7 years ago
  • Java Program Formatting Using Methods?

    I have to write a program that deals with formatting a double value with only two numbers past the decimal point (ex: 4.56). Okay, there is more to this program, but this is the problem I'm having. It has to be done this way, as per practice with using methods. I can't cast things just to round myself unless it's able to be done within a method. Example of how this should look:

    class {

    main {

    //pretend there is a method here that returns a double number

    //now use that double number to send to his method to be formatted (pretend name: numFormat();)

    } //end of main

    //method (public static etc) numFormat (double numberMeantToBeFormatted) {

    code that formats the number sent here

    return (value that is fomatted);

    } //end of numFormat

    What would this look like if the code is actually written? I write something that does something like this and it shows no error unless it is run. Then an error comes up.

    If you have any hints that could help me thanks! It's only when I try to send a String value (when using code like printf or String.format) that I get an error. Thanks!

    1 AnswerProgramming & Design7 years ago
  • Java Programming: Method Formatting Question?

    Hi! So I have to write a program and I ran into an issue. I have to format a double value (like 25.678) to have only two decimal spaces (25.67). I tried to do it this way:

    Class {

    Main {

    String billingFormat = formatBill (finalBillValue);

    //finalBillValue is a double value which is already calculated (it's the bill total not formatted)

    } //end of main

    public static void formatBill (double finalBillValue){

    String finalBillValueFormat = String.format ("%.2", finalBillValue);

    System.out.println("Your total bill comes to $" + finalBillValueFormat);

    } // end of method formatBill

    }//end of class

    It doesn't show any errors, but when I run it It comes out with this:

    Exeption thread in main ... conversion = '.'

    at java.util.Formatter.checkText(unknown source)

    at java.util.Formatter.parse (unknown source)

    etc.

    Please help me if you can! Thanks!

    2 AnswersProgramming & Design7 years ago