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 59,014 points

yoan

Favorite Answers47%
Answers1,159
  • does this forloop work is it valid?

    for (numberArray[i] = 0; numberArray[i] < numberString.length(); numberArray[i]++2)

    2 AnswersProgramming & Design1 decade ago
  • Help with this rockpaperscissors program?

    I also I can't get java to work . can someone tell me how to set the right environment variables and also tell me why .nextChar isn't working?

    import java.util.Scanner;

    public class rpsgame {

    public static void main(String[] args) {

    //declare variables

    int userInput;

    double computerStyle = Math.random() * 3;

    char rock = '0';

    char paper = '1';

    char scissors = '2';

    char style;

    char style2;

    int sum = 0;

    int gamesWon = 0;

    int gamesLost = 0;

    int winAvg;

    //declare scanner

    Scanner scan = new Scanner(System.in);

    System.out.print("The program exits if your input is negative");

    //loop

    do {

    System.out.print("rock (0), paper (1), scissors (2): " + userInput);

    userInput = scan.nextInt();

    userInput = scan.nextChar();

    System.out.print(userInput);

    if (userInput > computerStyle) {

    //list the style

    userInput = style;

    style2 = computerStyle;

    System.out.println("You use " + style + "!\n"

    + "Computer uses " + style2 + ".");

    System.out.println("You won!");

    gamesWon++;

    if (userInput == 0 && computerStyle ==2) {

    userInput = style;

    style2 = computerStyle;

    System.out.println("You use " + style + "!\n"

    + "Computer uses " + style2 + ".");

    System.out.println("You won!");

    gamesWon++;

    }

    }

    else if (userInput == computerStyle){

    System.out.println("You use " + style + "!\n"

    + "Computer uses " + style2 + "too!");

    System.out.println("It is a draw");

    }

    else

    System.out.println("You lost");

    gamesLost++;

    sum += userInput;

    } while (userInput < 0);

    //win/loss statistics, player's winning average

    winAvg = gamesWon/gamesLost + gamesWon%gamesLost;

    System.out.println("Win:loss\n "

    + gamesWon + ":" + gamesLost

    + "," + "Win average: " + winAvg );

    }

    }

    1 AnswerProgramming & Design1 decade ago
  • TCG is so old-fashioned currently, compared to OCG.?

    tcg is like not worth playing until the other half of the game in ocg gets 'printed'... Don't you find this annoying and lame?

    I really think tcg is trying so hard to be balanced and be separate from ocg, but no.. sometimes there's a better way to do things.

    2 AnswersCard Games1 decade ago
  • Does anyone know where this vocal sampling comes from? Where it originated?

    Here's the sampling:

    It's the return of the best and my name is Roxanne

    More bounce in my flow than shocks man

    Compare me to the rest of your box man

    Cause I am mad sick, contagious like pox man

    I'm like a locksman opening doors

    I'm elevating to the top floors

    I work hard like a slave doing chores

    Speaking my mind like there be no laws

    I'm the master

    Look quick but I move much faster

    My jives penetrate walls like Casper

    And through the paint, through the wall, through the plaster

    And off the record like a natural disaster

    And peace & love like a dreadlocked rasta (not exactly sure)

    I don't do hard but I got the yes from the master (not exactly sure)

    Just an intro wait for the extra, extra, extra

    --this sample shows up in so many songs, I really want to know where it was from?

    2 AnswersRap and Hip-Hop1 decade ago
  • What does the 5 listed 'rankings' for each person [on this site] mean?

    What does the 5 listed 'rankings' for each person [on this site] mean?

    Here's the link to the page: http://ent2.excite.co.jp/music/special/capsule/int...

    1 AnswerLanguages1 decade ago
  • pseudocode algorithm problem, thanks for your help!?

    Write a pseudocode algorithm to get three integers from the user and print them in numeric order.

    Enclose this design within a loop that reads in the three values until the user enters the first value of the trio as negative.

    --this confuses me

    3 AnswersMathematics1 decade ago
  • can u hlep with this code? i don't know how to use enum?

    import java.util.Scanner; // for keyboard input

    public class Cards{

    public enum Card_notation {A,2,3,4,5,6,7,8,9,10,J,Q,K};

    public static void Main(String[] args)

    {

    System.out.print("Enter card notation. Example: QS Result: Queen of Spades");

    String Card_notation = in.nextString();

    //int [] cardvalues[12];

    //A = 1 or 14

    String "stuff";

    switch ((Card_notation.valueOf("stuff")) {

    case A:

    stuff = “Ace”;

    break;

    case 2:

    stuff = “Two”;

    break;

    case 3:

    stuff = “Three”;

    break;

    case 4:

    stuff = “Four”

    break;

    case 5:

    stuff = “Five”

    break;

    case 6:

    stuff = “Six”

    break;

    case 7:

    stuff = “Seven”

    break;

    case 8:

    stuff = “Eight”

    break;

    case 9:

    stuff = “Nine”

    break;

    case 10:

    stuff = “Ten”

    break;

    case J:

    stuff = “Jack”

    break;

    case Q:

    stuff = “Queen”

    break;

    case K:

    stuff = “King”

    break;

    default:

    stuff = "";

    }

    }

    }

    1 AnswerProgramming & Design1 decade ago
  • Can someone explain how to cure my left ear?

    when i open and close my mouth, i can ear a noise (pop or crackle) near my left ear.. and also this eardrum vibrates when i listen to music(it didnt a week ago)... also my left ear vibrates weirdly when i play the piano(didnt a week ago)..

    also, when i hold my nose+blow(i dont know how hard to blow), but my left ear seems like it wont pop but air comes out my right ear for about 1 sec

    * also my right ear seems fine

    i told my mom and she checked my ear and cleaned most of the earwax out with a cottonswab

    1 AnswerOther - Diseases1 decade ago