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,851 points

lookadistraction

Favorite Answers50%
Answers281
  • how to grow lychee trees?

    i just finished eatting a lychee and i am wondering if i can grow it in san francisco, ca. if i can what is the best way to grow it? what are the steps to growing it and how long will it take for the tree to bare fruit?

    5 AnswersGarden & Landscape1 decade ago
  • san francisco driving test tips?

    can someone please give me some tips for taking the driving test in sf. do i need to drive for 6 hours and get some sort of certificate that i did 6 hours of driving in order to take the test? what counts as automatic fail on the test. will i need to know how to park the car?

    3 AnswersOther - Cars & Transportation1 decade ago
  • need help with my java?

    ok my goal is to make the basketball use the methods from the superclass ball. how can i make it work. also i am trying to make both the basketball and the ball appear on the same jpanel window. how can i do this. you can either show me or you can give me an example. if anyone has any questions feel free to email me at dwc94110@yahoo.com. also for putting both images on the jpanel can use paintborder method

    and here are my java files

    1

    import java.awt.*;

    import javax.swing.*;

    public class Painter

    {

    public Painter()

    {

    JFrame frame = new JFrame("my final project");

    Ball b = new Ball();

    Basketball a = new Basketball();

    frame.getContentPane().add(b);

    frame.getContentPane().add(a);

    frame.setSize(500,500);

    frame.setVisible(true);

    }

    }

    2

    import java.awt.*;

    import javax.swing.*;

    public class Ball extends JPanel

    {

    public void paintComponent(Graphics g)

    {

    g.drawRoundRect(100,120, 120, 120, 120, 120);

    g.drawArc(100, 140,120,50 , 0, 0);

    g.drawArc(110, 200,110,20 , 0, 0);

    Font f = new Font("TimesRoman", Font.BOLD, 20);

    g.setFont(f);

    g.drawString("regular ball", 50, 100);

    }

    3import java.awt.*;

    import javax.swing.*;

    public class Basketball extends Ball

    {

    public void paintComponent(Graphics g)

    {

    g.drawRoundRect(100,120, 120, 120, 120, 120);

    g.drawArc(100, 140,120,50 , 0, -180);

    g.drawArc(110, 200,110,20 , 0, 180);

    g.drawString("your name goes here",110,200);

    Font f = new Font("TimesRoman", Font.BOLD, 60);

    g.setFont(f);

    g.drawString("basketball", 10, 100);

    }

    }

    1 AnswerProgramming & Design1 decade ago
  • can someone help me find info. on this disease?

    i am trying to find information on giant lymph node hyperplasia.

    it is a rare disease that i can not find any info on.can someone direct me to a website that has the cause, symtoms, crognosis and treatment and possible cure

    1 AnswerOther - Diseases1 decade ago
  • can i have some feedback on this comic?

    http://www.drunkduck.com/Villans_Untld/index.php?p...

    i saw this comic online and thought that it was pretty cool...

    what do you guys think?

    2 AnswersComics & Animation1 decade ago
  • super classes and subclasses?

    When you have a method in both a superclass and a subclass, how does the JVM know which one of these to call?

    3 AnswersProgramming & Design1 decade ago
  • need help with clues for Spanish crossword puzzle?

    for the crossword puzzle i have a hard time making the clues. unfortunatly for me all the clues are suppose to be in spanish.i need to make clues but i dont want it to be too hard because it is a spanish class in high school and some people's spanish are not as well developed as others.

    the words i need to make clues are:

    la calavera/ skull

    el pan de muerto/ bread for day of the dead

    los angelitos children that died(celerbrated on nov. 1st)

    el cementerio/ cemetery

    el fantasma' ghost

    la tumba/tomb

    el copal.incense

    la calabaza/pumpkin

    zempazuchitl marigold

    el sequeleto skeleton

    los muertos the dead

    las velas

    la ofrenda offering or altar

    for the clue about the skull i want to make it "what is white and has teeth"

    for the bread i wanted to make it "what is made of flour and is for day of the dead"

    for the children that died i want to make it " celebrated on november 1st"

    for cemetery i want it to say"it has tombs in it "

    for ghost i want to say"you can see throght it and it floats"

    for tomb i want it to say it goes in the cemetary

    for incense"if you burn me i smell"

    for pumkin"i am orange and i can be carved"

    for marigold "i am a flower"

    for skeletons " i am made of bones"

    for the dead "i am not alive"

    for velas" i melt "

    i am not sure what clue shoud be for altar or offering

    4 AnswersLanguages1 decade ago
  • how to i fix this java, it doesn't do what i want ?

    class Movie

    {

    String title;

    String genre;

    int rating;

    }

    class MovieTestDrive

    {

    public static void main( String[] args )

    {

    Movie[] movi = new Movie[10];

    movi[0] = new Movie( );

    movi[0].title = "Harry Potter,";

    movi[0].genre = "fantasy, ";

    movi[1] = new Movie( );

    movi[1].title = "James Bonds,";

    movi[1].genre = "action, ";

    movi[2] = new Movie( );

    movi[2].title = "Home alone,";

    movi[2].genre = "comedy, ";

    movi[3] = new Movie( );

    movi[3].title = "Star wars,";

    movi[3].genre = "scifi, ";

    movi[4] = new Movie( );

    movi[4].title = "March of the penguins,";

    movi[4].genre = "Documentary, ";

    movi[5] = new Movie( );

    movi[5].title = "The day after tomorrow,";

    movi[5].genre = "scifi, ";

    movi[6] = new Movie( );

    movi[6].title = "101 dalmations,";

    movi[6].genre = "action, ";

    movi[7] = new Movie( );

    movi[7].title = "Dark Knight,";

    movi[7].genre = "action, ";

    movi[8] = new Movie( );

    movi[8].title = "Spiderman,";

    movi[8].genre = "action, ";

    movi[9] = new Movie( );

    movi[9].title = "The ring,";

    movi[9].genre = "horror, ";

    String hrm ="Highest rated movie: " ;

    for ( int x=0; x<10; x++ )

    {

    movi[x].rating = ( int )( Math.random( )*10 )+1;

    System.out.println( "Movie: " + movi[x].title + " Genre:" + movi[x].genre + "Rating:"+movi[x].rating );

    }//end for loop

    int max =0;

    int himov=0;

    for ( int x=0; x<10; x++ )

    {

    if ( max<movi[x].rating )

    {

    max=movi[x].rating;

    himov = x;

    }

    }//end for loop

    System.out.println(hrm + himov + max );

    } //end main

    } //end class MovieTestDrive

    My problem is that in the last part i am suppose to print out another line on what was the highest rating and it is suppose to print out "the highest rated movie is: highest rated movie name and the highest rated movie's score.in mine it prints out the element of the movie out for example if it is supose to print out dark knight it prints out 7 insead how do i fix this problem.

    also i need to change the Movie class to allow the ratings to be numbers from 1.0 to 10.0 (note that this is a single decimal place) and set them randomly, while keeping all the previous functionality.what do i change in my code in order to achive this goal?

    also i need to make somthing that In the case of a tie for maximum rating, print something like:

    Tied for highest rating: The Maltese Falcon(8/10), eXistenZ (8/10)

    how do i do this?

    explain clearly please

    please do not put random answers that do not help me in anyway shape or form

    1 AnswerProgramming & Design1 decade ago
  • can you help me with java?

    this is the 2nd time i asked this question but i edited my java code so yeah.

    this is what i have right now

    class Movie

    {

    String title;

    String genre;

    int rating;

    }

    class MovieTestDrive

    {

    public static void main( String[] args )

    {

    Movie[] movi = new Movie[10];

    movi[0] = new Movie( );

    movi[0].title = "Harry Potter,";

    movi[0].genre = "fantasy, ";

    movi[1] = new Movie( );

    movi[1].title = "James Bonds,";

    movi[1].genre = "action, ";

    movi[2] = new Movie( );

    movi[2].title = "Home alone,";

    movi[2].genre = "comedy, ";

    movi[3] = new Movie( );

    movi[3].title = "Star wars,";

    movi[3].genre = "scifi, ";

    movi[4] = new Movie( );

    movi[4].title = "March of the penguins,";

    movi[4].genre = "Documentary, ";

    movi[5] = new Movie( );

    movi[5].title = "The day after tomorrow,";

    movi[5].genre = "scifi, ";

    movi[6] = new Movie( );

    movi[6].title = "101 dalmations,";

    movi[6].genre = "action, ";

    movi[7] = new Movie( );

    movi[7].title = "Dark Knight,";

    movi[7].genre = "action, ";

    movi[8] = new Movie( );

    movi[8].title = "Spiderman,";

    movi[8].genre = "action, ";

    movi[9] = new Movie( );

    movi[9].title = "The ring,";

    movi[9].genre = "horror, ";

    String hrm ="Highest rated movie: " ;

    for ( int x=0; x<10; x++ )

    {

    movi[x].rating = ( int )( Math.random( )*10 )+1;

    System.out.println( "Movie: " + movi[x].title + " Genre:" + movi[x].genre + "Rating:"+movi[x].rating );

    }//end for loop

    int max =0;

    for ( int x=0; x<10; x++ )

    {

    if ( max<movi[x].rating )

    {

    max=movi[x].rating;

    }

    }//end for loop

    System.out.println(hrm + max );

    } //end main

    } //end class MovieTestDrive

    this is almost done i only need to add a few things

    i need to:

    use a second for loop to traverse the array and find the highest rating. if you run my code you will see that i already have the highest rating but i dont know how to put the movie name in there as well Sample output:

    Movie: Triad Election, Genre: Hong Kong, Rating: 8

    Movie: Vertigo, Genre: Film Noir, Rating: 5

    Movie: The Maltese Falcon, Genre: Film Noir, Rating: 7

    Movie: So I Married An Axe Murderer, Genre: Comedy, Rating: 7

    Movie: eXistenZ, Genre: Drama, Rating: 3

    Movie: Hero, Genre: Martial Arts, Rating: 9

    Movie: Office Space, Genre: Comedy, Rating: 5

    Movie: Rivers and Tides, Genre: Documentary, Rating: 2

    Movie: The Fall, Genre: Drama, Rating: 6

    Movie: King of Kong, Genre: Documentary, Rating: 4

    Highest rated movie: Hero (9/10)

    also i need to change the Movie class to allow the ratings to be numbers from 1.0 to 10.0 and set them randomly, while keeping all the previous functionality.then i need to the case of a tie for maximum rating, print something like:

    Tied for highest rating: The Maltese Falcon(8/10), eXistenZ (8/10)

    i tried to put the name but i keep getting errors in them

    1 AnswerProgramming & Design1 decade ago
  • please help me make this java program do what i want?

    in the end of all of this i need to use a second for loop to traverse the array and find the highest rating but i cant seem to do it. i made an attempt in the end but it doesnt work.

    i also need to change the Movie class to allow the ratings to be numbers from 1.0 to 10.0 (note that this is a single decimal place) and set them randomly, while keeping all the previous functionality. i think i need it to be float instead of int but im not sure

    i also need something In the case of a tie for maximum rating, i need it to print both movies. i think need two System.out.println?

    class Movie

    {

    String title;

    String genre;

    int rating;

    }

    class MovieTestDrive

    {

    public static void main( String[] args )

    {

    Movie[] movi = new Movie[10];

    movi[0] = new Movie();

    movi[0].title = "Harry Potter,";

    movi[0].genre = "fantasy, ";

    movi[1] = new Movie();

    movi[1].title = "James Bonds,";

    movi[1].genre = "action, ";

    movi[2] = new Movie();

    movi[2].title = "Home alone,";

    movi[2].genre = "comedy, ";

    movi[3] = new Movie();

    movi[3].title = "Star wars,";

    movi[3].genre = "scifi, ";

    movi[4] = new Movie();

    movi[4].title = "March of the penguins,";

    movi[4].genre = "Documentary, ";

    movi[5] = new Movie();

    movi[5].title = "The day after tomorrow,";

    movi[5].genre = "scifi, ";

    movi[6] = new Movie();

    movi[6].title = "101 dalmations,";

    movi[6].genre = "action, ";

    movi[7] = new Movie();

    movi[7].title = "Dark Knight,";

    movi[7].genre = "action, ";

    movi[8] = new Movie();

    movi[8].title = "Spiderman,";

    movi[8].genre = "action, ";

    movi[9] = new Movie();

    movi[9].title = "The ring,";

    movi[9].genre = "horror, ";

    for (int x=0; x<10; x++)

    {

    int rating = ( int )( Math.random( )*10 )+1;

    System.out.println( "Movie: " + movi[x].title + " Genre:" + movi[x].genre + "Rating:"+ movi[x].rating );

    }

    int max=0;

    for (int x=0; x<10; x++)

    {

    if(max<movi[x].rating)

    {

    max=movi[x].rating;

    }

    }

    System.out.println(max);

    } //end main

    } //end class MovieTestDrive

    if you have questions for me regarding this please email me at dwc94110@YAHOO

    1 AnswerProgramming & Design1 decade ago
  • what does java do to this code in each step?

    i need to know what does java do in each step. it seems like to me that sneezy would be 0 in the array then it will be subtracted by 1 in i-- so it doesnt print first and when it is grumpy it would be 6 so 6is greater than 0 so the while loop works so then it subtracts 1? so it would be 5? is that why grumpy prints out first

    well anyways i need to know what the value of i will be each time it loops and why it prints out that way

    String[] names = { "Sneezy", "Sleepy", "Dopey",

    "Doc", "Happy", "Bashful", "Grumpy" };

    int i = names.length;

    while( i > 0 )

    {

    i--;

    System.out.println( names[i] );

    }

    2 AnswersProgramming & Design1 decade ago
  • can someone explain some java?

    1.

    String[] names = { "Sneezy", "Sleepy", "Dopey",

    "Doc", "Happy", "Bashful", "Grumpy" };

    int i = names.length;

    while( i > 0 )

    {

    i--;

    System.out.println( names[i] );

    }

    can you please help me Explain exactly what this code will do step-by-step, including the value of i at each step and the result of the conditional test ( i > 0 ) at every iteration of the loop and which name will be printed at each step!

    Then i need to rewrite the loop so that it prints the names in the same order that they exist in the array, one per line. for some reason i cant make it do that.

    2.

    int i = 8;

    while( i < 42 )

    {

    if ( i > 15 )

    {

    break;

    }

    System.out.println( i );

    i = i + 2;

    }

    i need help Explaining why this code never prints a number greater than 14 even though the while loop allows i to go up to 42. need to know what it does on each line

    3 AnswersProgramming & Design1 decade ago
  • how can i make this java code to do what i want?

    i am trying to Write a class declaration for a class Clock. It should have instance variables for hours, minutes, seconds (all integers) and methods to set each of these values to an integer value. It should also have a checkTime() method that verifies that the values stored in hours, minutes, and seconds are valid (not too large or negative) and prints out:

    The time is valid. or The time is invalid.

    Finally, it needs a getTime() method to show the time in the format shown:

    The time is 3:45:00

    Write a separate ClockTestDrive class to:

    * create an instance of a Clock

    * set the hours, minutes, and seconds to random (but valid) numbers

    * verify the validity of the time using checkTime()

    * show the time using getTime()

    i am having trouble making it so that i prints out correctly right now i prints out 1:045:7

    here are my two files

    class Clock

    {

    int hour;

    int min;

    int sec;

    String col = ":";

    String zero = "0";

    void checkTime( )

    {

    if ( hour>0 && min<=59 && sec<=59 )

    {

    System.out.println( "The time is valid." );

    }

    else

    {

    System.out.println( "The time is invalid." );

    }

    }

    void time( )

    {

    if (min<10 || sec<10 )

    {

    System.out.println( hour + col + zero + min + col+ zero + sec);

    }

    else

    {

    System.out.println( hour + col + min + col + sec );

    }

    }

    }

    and

    class ClockTestDrive

    {

    public static void main( String[] args )

    {

    Clock a = new Clock();

    a.hour = ( int )( Math.random( )*12 );

    a.min = ( int )( Math.random( )*59 );

    a.sec = ( int )( Math.random( )*59 );

    a.time( );

    a.checkTime( );

    } //end main

    } //end class ClockTestDriv

    when i do this it keeps on making that mistake. i might be able to use a while statement not sure if i can

    3 AnswersProgramming & Design1 decade ago
  • inspect my poem?

    hi can someone please give me some feedback/comments, tips, and help me correct somethings that i did wrong in my poem that i wrote

    A bubble bursts

    the air disperses

    a bottle of anger

    pressurized from within and out

    it would soon burst

    and all that anger would be let out

    a calm person

    anger locked up

    an irritated person

    anger leaking out

    like a pressurized water heater

    with enough pressure it would steam

    with too much pressure

    it will blow

    Like a majestic rock

    being worn down by the tide

    the rock is stubborn

    unwilling to move

    yet the tide persists

    the story ends like this

    the tide would change the rock

    no longer big and strong

    the tide prevails

    now its a beach

    changed forever

    by daniel c

    12 AnswersPoetry1 decade ago
  • medical ethics?

    Human growth hormone has successfully been cloned and it now commercially synthesized. early clinical trials showed that growth hormone deficient individuals have an allergic reaction to it. someone has achondroplasia, a type of genetic dwarfing condition, so his endocrinologist began him on growth hormone therapy. after two weeks he had severe allergic reaction called anaphylaxis. subsequently, growth hormone deficient treatments were discontinued because the hormone has no affect on intrinsic skeletal abnormalities (dwarfing conditions)

    1.who is responsible for correct use of a new drug? the company the physician the parent or the individual

    2. who is responsible for adverse reactions?

    3. should parents/patients be required to sign consent forms that describe complications of treatment? should they be able to sue when a drug is used inappropriately and result in a severe side effect and possible long term complications?

    3 AnswersMedicine1 decade ago
  • micro sd card?

    my micro sd card from sandisk doesnt work anymore.

    1.cant reformat

    2.cant open

    3.doesnt detect it sometimes

    i use it for my camera and laptop it just didnt detect it one day then i worked the next but now it doesnt work anytime i try it is there a way to fix it

    2 AnswersAdd-ons1 decade ago
  • essay corrections?

    can you help me correct this essay i tried to correct it as most as possible. this is for school by the way.

    What is self-reliance? Self reliance is when you think and act for yourself. You make your own path in life; to make your own choices without people telling you what to do. If it is against your instincts you don’t follow it. You speak your mind even if others don’t believe you or thinks that you are telling the truth, but you will know for yourself that you are right because your instincts tell you that. If something is wrong you complain about it and work to make it better for everyone. Self reliance is basically thinking and acting for one self with no one controlling you in anyway.

    Self reliance is thinking and acting for one self with no one controlling you. An example of this is John Proctor from the play The Crucible by Arthur Miller. John Proctor acts for himself with no one controlling him. He does not go to church because the reverend says things that he does not

    4 AnswersHomework Help1 decade ago
  • self reliance?

    how are john proctor from the Crucible, and Richard Wright from the book black boy examples of self reliance

    2 AnswersBooks & Authors1 decade ago
  • genetic engineering! BIOTECHNOLOGY?

    THIS IS NOT BIOLOGY IT IS BIOTECHNOLOGY this note is for a certian someone that does not allow email and messages

    what are the benefits ?what do you get out of that job ?

    what is the typical salary ?

    the health plan?

    the retirment plan?

    what classes do you have to take in order to be a genetic engineer? in high school and in collage?

    what do you do in genetic engineering?

    what kinds of things do you do in this job?

    what do you have to major in?

    how long does it take you to be a genetic engineer?

    please no stupid answers!

    and tell me where are your sources please

    thank you for helping

    THIS IS NOT BIOLOGY IT IS BIOTECHNOLOGY this note is for a certian someone that does not allow email and messages please answer all questions please answer all questions please answer all questions please answer all questions

    3 AnswersEngineering1 decade ago
  • genetic engineering?

    what are the benefits ?what do you get out of that job ?

    what is the typical salary ?

    the health plan?

    the retirment plan?

    what classes do you have to take in order to be a genetic engineer? in high school and in collage?

    what do you do in genetic engineering?

    what kinds of things do you do in this job?

    what do you have to major in?

    how long does it take you to be a genetic engineer?

    please no stupid answers!

    and tell me where are your sources please

    thank you for helping

    1 AnswerEngineering1 decade ago