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 42,921 points

Boss

Favorite Answers19%
Answers606
  • Question regarding Custody case?

    I have a parenting legally documented plan for my son with my ex, she gets him for two weeks over the Christmas break and so do I and we share him through out the year.. I just found out that during these two weeks, she has moved with him to another town, the town is 112 miles away. I will be unable to see him like what is documented in the parenting plan. I am afraid if I take legal action all that will happen is that my child support payments will go up because my % of custody will go down.. what should I do? State is NM

    4 AnswersLaw & Ethics7 years ago
  • Help with python fucntion?

    Okay here is my task

    Write a program that defines a function that has a number from 1 to 12 a its input and returns the full name of the month of the year as well as the number of days in that month. e.g. myfunc(3) would return a string "March 31"

    i know how to write a basic function

    def_month():

    print "does stuff"

    month

    but how do set the January 31 and February 28/29 to be called when the user inputs 1 or 2

    2 AnswersProgramming & Design8 years ago
  • Python list sorting help?

    My sudo code

    #!/usr/bin/python

    a=open("redchief.txt").read().split()

    words=[{}for line in a]

    print ("\n" .join(words))

    I want to take my list here and make it print every unique word only once from the redchief.txt file how do i do that?

    1 AnswerProgramming & Design8 years ago
  • Can you tell me the name of this movie?

    I dont have much information it was probably late ninties early two thousands and it may have been an British film all I know is the main character did like gun kung fu and saved the city i think he wore black to show he was a badass and the real high up people wore white and it may have been Keano, or collin feral or hugh Jackman or somebody kinda famus but it was not the Matrix The gun kung fu is the thing that really sticks out in my mind

    1 AnswerMovies8 years ago
  • Do all the am I pregnant Questions Piss you off?

    I mean Really? If you have to ask on yahoo answers I'm saying you are pregnant period every time, who is with me?

    3 AnswersPolls & Surveys8 years ago
  • What do you call the green stuff in the pecan pie?

    You know the stuff between the pecans and the crust

    4 AnswersCooking & Recipes8 years ago
  • Help With Wiping Problem?

    So where i work they stock that lame single ply toilet paper with no umm "quilts" its just flat and rough.. so If I go to make doody and then wipe I have to use a ton of it cause I'm afraid of slipping a finger through and it still does not get the job done no matter how many times i wipe. I have thought about just wadding up a piece and sticking it on my brown eye to try and soak it up but it seems unpractical. Does anyone have any suggestions to help me out?

    1 AnswerOther - Beauty & Style8 years ago
  • Question about the Lord of the Rings and Tiger Woods?

    Did JRR Tolkien name Froto Fro toes because he has hairy feet and Eldric Tiger Woods is his middle name Tiger cause his mom was asian and his dad is black (like a tiger yellow black)

    3 AnswersJokes & Riddles8 years ago
  • Why does Helen Keller get all the credit?

    Shouldn't the credit go to her teacher? Don't pretend like you know the teachers name without googling it either.

    3 AnswersOther - Education8 years ago
  • How would you do this BASH..Vi?

    Im taking this class online and am really suffering from lack of instruction it is hard for to just read the book and just make things happen with out examples here is my problem.

    Write a script that examines the /var/log/secure file to gather information.

    1. Your script should access the /var/log/secure file and report how many failed

    attempts occurred for that day. Hint: the ‘wc’ command might come in handy.

    2. Append the output to a file called failed.log in the following format:

    Date: 03/15/10 Time: 10:30 Number of failed attempts: 8

    3. The output should be done inside the script using file redirection. Standard out is

    written to the failed.log in your script directory AND standard error should be written

    to a file call error.log. I.e. when I execute the script I should not see any output go

    to the screen, even if there is an error. Every time the script is executed it will

    append a line to the failed.log or error.log.

    Help Please

    1 AnswerProgramming & Design8 years ago
  • Can anyone define love for me?

    Give it your best shot I need some Quotes for a discussion, and the topic makes me throw up a little in my mouth and then swallow, so go ahead and get all gushy just the words flow. I know the way I phrased this is gonna make you want to reply something stupid like "Love is Nice hot mayonnaise on my face." Please refrain from doing this. I need the mushy stuff.

    1 AnswerWords & Wordplay9 years ago
  • Java How do convert a String into an Array?

    i need to convert

    public static String sort(String s)

    into an Array and then sort it, if you want to write the whole code go for it but just telling me how to convert the String to an Array is what I really need.

    2 AnswersProgramming & Design9 years ago
  • Legal Question about letter i got in snail mail?

    I received a letter in the mail saying I need to pay $500 to a sheriffs department in suton county texas, for a possession of drug paraphernalia in 2002, the letter was from a legal office who was representing the sheriffs department, should i pay it or get a lawyer. I had rolling Papers when I was pulled over in 2002 and I don't live in Texas

    4 AnswersLaw & Ethics9 years ago
  • Help with Java gets and sets?

    Please tell me how to set my gets and sets or accesors and mutators which ever you prefer to call them. So that my code will return the area and perimeters of each polygon I have the whole exercise complete except for that part, the book Im learning form does not give a good example I just need to see it once.

    public static void main(String[] args) {

    RegularPolygon polygon1 = new RegularPolygon();

    RegularPolygon polygon2 = new RegularPolygon(6, 4);

    RegularPolygon polygon3 = new RegularPolygon(10, 4, 5.6, 7.8);

    System.out.println("Polygon 1 perimeter: " +

    polygon1.getPerimeter());

    System.out.println("Polygon 1 area: " + polygon1.getArea());

    System.out.println("Polygon 2 perimeter: " +

    polygon2.getPerimeter());

    System.out.println("Polygon 2 area: " + polygon2.getArea());

    System.out.println("Polygon 3 perimeter: " +

    polygon3.getPerimeter());

    System.out.println("Polygon 3 area: " + polygon3.getArea());

    }

    }

    //create class with private fields

    class RegularPolygon {

    // Implement it

    private int n = 3;

    private double side = 1;

    private double x = 0;

    private double y = 0;

    // default

    RegularPolygon (){

    }

    // 1st defined polygon

    RegularPolygon (int n, double side){

    n = 6;

    side = 4;

    }

    //second defined polygon

    RegularPolygon (int n, double side, double x, double y){

    n = 10;

    side = 4;

    x = 5.6;

    y = 7.8;

    }

    //gets and sets

    public double getPerimeter(){

    return n * side;

    }

    public double getArea (){

    return n * side * side / Math.tan(Math.PI / n) / 4;

    }

    }

    1 AnswerProgramming & Design9 years ago
  • Help with Array assignment in java.?

    If anyone would be willing to help with this i would really appreciate it. (and if you want to lecture me about it being an assignment I already know I have about 3/4 done so I just want to see how someone who is better than me at programming would do it or if there is something I missed)

    1. A method that accepts an array of doubles and returns the highest double number in the array.(Highest Grade)

    2. A method that accepts an array of doubles and returns the lowest double number in the array.(Lowest Grade)

    3. A method that accepts an array of doubles and returns the average of the numbers in the array as a double.(Average Grade)

    4. A method that accepts a double number and returns a String letter grade.

    5. A method that has no input but returns a double array of student grades.

    6. A method that accepts an integer for input and returns the name equivalent for numbers 1 – 10 and adds the correct two letter extension to numbers after that.

    7. Use a String Array to store the student names along with a parallel, double multidimensional array to store all of the student grades.

    completed output should look like this

    Student Name High Score Low Score Average Grade

    Sally 98 65 89 B

    Rick 100 78 93 A

    Bill 89 72 83 B

    Andy 96 87 94 A

    1 AnswerProgramming & Design9 years ago
  • Help with java code tic tac toe board?

    My assignment is to display a frame that contains nine labels. A label may display an image icon for X, an image for O or nothing. What to display is randomly decided. Use the Math.random() method to generate an integer 0,1, or 2 which corresponds to displaying a cross image icon, a not image icon or nothing. i understand i need to have a source for the image icons but how do I do the rest?

    Here is my code so far

    import javax.swing.*;

    import java.awt.*;

    import javax.swing.border.*;

    public class Exercise_12_7 extends JFrame {

    public Exercise_12_7() {

    JLabel jlbl1 = new JLabel(new ImageIcon("image/uk.gif"));

    JLabel jlbl2 = new JLabel(new ImageIcon("image/fr.gif"));

    JLabel jlbl3 = new JLabel(new ImageIcon("image/norway.gif"));

    JLabel jlbl4 = new JLabel(new ImageIcon("image/my.jpg"));

    JLabel jlbl5 = new JLabel(new ImageIcon("image/my.jpg"));

    JLabel jlbl6 = new JLabel(new ImageIcon("image/my.jpg"));

    JLabel jlbl7 = new JLabel(new ImageIcon("image/my.jpg"));

    JLabel jlbl8 = new JLabel(new ImageIcon("image/my.jpg"));

    JLabel jlbl9 = new JLabel(new ImageIcon("image/my.jpg"));

    jlbl1.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl2.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl3.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl4.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl5.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl6.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl7.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl8.setBorder(new LineBorder(Color.BLACK, 1));

    jlbl9.setBorder(new LineBorder(Color.BLACK, 1));

    setLayout(new GridLayout(3, 3));

    add(jlbl1);

    add(jlbl2);

    add(jlbl3);

    add(jlbl4);

    add(jlbl5);

    add(jlbl6);

    add(jlbl7);

    add(jlbl8);

    add(jlbl9);

    }

    public static void main(String[] args) {

    Exercise_12_7 frame = new Exercise_12_7();

    frame.setTitle("Exercise12_7");

    frame.pack();

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    frame.setLocationRelativeTo(null); // Center the frame

    frame.setVisible(true);

    }

    }

    2 AnswersProgramming & Design9 years ago
  • Help with java code using a method application?

    write the following method to display three numbers in inreasing order

    public class counting {

    public static void displaySortedNumbers(double num1, double num2, double num3) {

    Can anyone take it from there and show me an example of how to do this? cause I dopnt really know where to start with this one.

    2 AnswersProgramming & Design9 years ago
  • Please Help with Java code How do i do this?

    import javax.swing.JOptionPane;

    public class Exercise_4_21 {

    public static void main(String[] args) {

    int numOfYears;

    double loanAmount;

    java.util.Scanner input = new java.util.Scanner(System.in);

    // Enter loan amount

    System.out.print(

    "Enter loan amount, for example 120000.95: ");

    loanAmount = input.nextDouble();

    // Enter number of years

    System.out.print(

    "Enter number of years as an integer, \nfor example 5: ");

    numOfYears = input.nextInt();

    // Enter yearly interest rate

    System.out.print(

    "Enter yearly interest rate, for example 8.25: ");

    // Convert string to double

    double annualInterestRate =

    input.nextDouble();

    // Obtain monthly interest rate

    double monthlyInterestRate = annualInterestRate/1200;

    // Compute mortgage

    double monthlyPayment = loanAmount*monthlyInterestRate /

    (1 - (Math.pow(1 / (1 + monthlyInterestRate), numOfYears * 12)));

    double balance = loanAmount;

    double interest;

    double principal;

    System.out.println("Loan Amount: " + loanAmount);

    System.out.println("Number of Years: " + numOfYears);

    System.out.println("Interest Rate: " + annualInterestRate + "%");

    System.out.println();

    System.out.println("Monthly Payment: " + (int)(monthlyPayment * 100) / 100.0 );

    System.out.println("Total Payment: " + (int)(monthlyPayment * 12 * numOfYears * 100) / 100.0 + "\n" );

    // Display the header

    System.out.println("Payment#\tInterest\t…

    int i;

    for (i = 1; i <= numOfYears * 12; i++) {

    interest = (int)(monthlyInterestRate * balance * 100) / 100.0;

    principal = (int)((monthlyPayment - interest) * 100) / 100.0;

    balance = (int)((balance - principal) * 100) / 100.0;

    System.out.println(i + "\t\t" + interest

    + "\t\t" + principal + "\t\t" + balance);

    }

    }

    }

    1 AnswerProgramming & Design9 years ago