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 31,830 points

An Angry Retard

Favorite Answers33%
Answers295

<>< {}{ OH. MY. GOD. ITS FISH!!!!!

  • Why is this still here?

    No, really? Haven't we scientifically proven that dreams are nothing more than (the brains interpretation of the) firing of synapses while the brain repairs itself during sleep? So can we get rid of this category, now, please?

    5 AnswersDream Interpretation10 years ago
  • Why do you think the Medieval music period lasted so long?

    We've been looking at musical periods in my Music Listening class, and I was wondering why the music of Middle Ages lasted the longest by such a huge margin. It lasted basically 1000 years more than any other period.

    3 AnswersClassical1 decade ago
  • Help with Java homework?

    I need to create a program that allows the user to create a baseball team. The program uses 3 classes:

    Player.java, Team.java, and Beisbol.java. This is what I have so far. In the "FOR THE STUDENT TO COMPLETE" areas are where I need help. I have done some of it, but I'm not sure its correct...

    Here is Player.java:

    package csc212lab09a;

    public class Player

    {

    private String firstName;

    private String lastName;

    private String position;

    public Player(String first, String last, String position)

    {

    firstName = first;

    lastName = last;

    this.position = position;

    // FOR STUDENT TO COMPLETE

    // save first into firstName

    // save last into lastName

    // save position into this.position

    //I think this is right, but I could be wrong.

    }

    public String fullName()

    {

    return firstName + " " + lastName;

    }

    public String position()

    {

    return position;

    }

    public String toString()

    {

    // FOR STUDENT TO COMPLETE

    // return a String of form shown below

    return "Name: " + fullName() + ": " + position;

    //"Name: Harmon Killebrew Position: 1st base";

    //(not sure if this is right)

    }

    }

    This is Team.java:

    package csc212lab09a;

    public class Team

    {

    private Player[] players;

    private int count;

    public Team(int size)

    {

    players = new Player[size];

    count = 0;

    }

    public boolean isFull()

    {

    if (count >= players.length) {

    return true;

    } else {

    return false;

    }

    // FOR STUDENT TO COMPLETE

    // if count >= length return true

    // else return false

    // I think I got this right

    }

    /** Determine where in this Team object the

    * given Player resides.

    */

    public int find(String name)

    {

    for (int i = 0; i < count; i++) {

    if (players[i].fullName().equals(name)){

    return i;

    }

    }

    // FOR STUDENT TO COMPLETE

    // write a for loop for i = 0 to i < count

    // if players[i].fullName() is equal to name

    // return i

    // if you make it all the way through the loop

    // return -1

    // this is where I start to get lost.

    return -1;

    }

    public boolean contains(String name)

    {

    return find(name) != -1;

    }

    public void add(Player p)

    {

    if (count < players.length) {

    }

    // FOR STUDENT TO COMPLETE

    // if count < players.length

    // add p into players[count]

    // increment count

    // I started the if check, but I don't know how to fill it.

    }

    public void remove(String name)

    {

    int where = find(name);

    if (where != -1) {

    }

    // FOR STUDENT TO COMPLETE

    // if where != -1

    // put players[count-1] into players[where]

    // set players[count-1] = null

    // decrement count

    }

    public int print()

    {

    for ( int i = 0; i < count; i++ ) {

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

    }

    return -1;

    }

    }

    And then the main part of the program: Beisbol.java will be added, I have a 5000 character limit.

    2 AnswersProgramming & Design1 decade ago
  • Help creating a simple program?

    Create a random number guessing game:

    Your program should first generate a random number between 1 and 100. (Hint: See the java.util.Random class and the nextInt() method ).

    Next, ask the user to guess the secret number. Your program should report if the guess is too high or too low, and keep track of how many guesses the user has made.

    When the user guesses the secret number, print an appropriate congratulatory message (< 3 guesses is "superb", < 6 guess is "can't complain", and < 9 is "pretty good". Over that is "that's okay I guess".)

    Here is an example session:

    Welcome to Number-dini.

    I'm thinking of a number between 1 and 100.

    Guess the number > 50

    That's too high.

    Guess the number > 25

    That's too low.

    Guess the number > 37

    That's too low.

    Guess the number > 44

    That's too low.

    Guess the number > 47

    That's too low.

    Guess the number > 48

    Correct! The number was 48.

    Number of guesses was 6.

    That's pretty good.

    3 AnswersProgramming & Design1 decade ago
  • How do I remove the suffix of a word in my program?

    I am in a Programming 212 class in college and was wondering how to remove a suffix from the word. The goal of the program is to display the root of a word. This is what I have:package csc212project01a;

    import java.util.Scanner;

    public class Main

    {

    /**

    *

    * @author Timothy

    * course CSC 212 Section L5F

    * date October 4, 2010

    * description:

    * This program represents a beginning attempt at finding

    * the root (aka the base) of a word.

    * Input:

    * A line of text representing a word to be analyzed

    * Output:

    * The "root" of the input word. If no prefix and/or suffix

    * is found, the entire word is assumed to be the root.

    *

    */

    /**

    * Find where prefix of a word ends, i.e., where the root starts.

    * @return offset into word at position after prefix

    * @param word to check for info on prefix

    *

    */

    public static int findStartOfRoot(String word)

    {

    if (word.startsWith("pre"))

    return 3;

    else if (word.startsWith("post"))

    return 4; // CHANGE THIS TO WHERE THE ROOT REALLY BEGINS

    else if (word.startsWith("non"))

    return 3; // CHANGE THIS TO WHERE THE PREFIX REALLY BEGINS

    else if (word.startsWith("dis"))

    return 3;

    else if (word.startsWith("de"))

    return 2;

    else if (word.startsWith("un"))

    return 2;

    else if (word.startsWith("ante"))

    return 4;

    // PUT OTHER CHECKS HERE

    // THIS FINAL VALUE IS CORRECT

    else

    return 0;

    }

    /**

    * Find where suffix of a word starts, i.e., where the root ends.

    * @return offset into word at the position where suffix starts

    * @param word to check for info on suffix

    *

    */

    public static int findEndOfRoot(String word)

    {

    if (word.endsWith("ing"))

    return word.length(); // CHANGE THIS TO WHERE THE ROOT REALLY ENDS

    else if (word.endsWith("ed"))

    return word.length();

    else if (word.endsWith("tion"))

    return word.length();

    else if (word.endsWith("er"))

    return word.length();

    // PUT OTHER CHECKS HERE

    ^^^this is the part I need help with!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    // THIS FINAL VALUE IS CORRECT

    else

    return word.length();

    }

    public static void main(String[] args)

    {

    System.out.println("Welcome to Root Cause ...");

    System.out.println("\t... a program which determines the root of a word.\n");

    Scanner scanner = new Scanner(System.in);

    System.out.print("Enter a word > ");

    String word = scanner.next();

    word = word.toLowerCase();

    int start = findStartOfRoot(word);

    int end = findEndOfRoot(word);

    String root = word.substring(start, end);

    System.out.println("The root of the word " + word + " is " + root);

    }

    }

    1 AnswerProgramming & Design1 decade ago
  • Can I switch my Tracfone number to AT&T?

    I want to pre-order the iPhone 4, but I want to keep my Tracfone number. Is there a way to do this, or will I have to get a new number?

    2 AnswersCell Phones & Plans1 decade ago
  • Does anyone know where (online) I can buy a Pioneer M-4000 Amplifier?

    We used to have this fantastic home theater system until the amplifier just stopped working. I would like to buy one online somewhere but can't find one. By the way, this is an older home theater system, so the pioneer website says it is unavailable.

    3 AnswersHome Theater1 decade ago
  • What is the name of those songs?

    What songs are playing in the CTV commercials lotto max and the jeep commercial?

    1 AnswerOther - Television1 decade ago
  • What are Oscars really made of?

    Are the gold plate metal, gold painted metal, plastic, styrofoam, what is it????

    4 AnswersCelebrities1 decade ago
  • Universal Remote problems?

    we just purchased a Panasonic Blu-Ray player which came with a universal remote. We are using this with a 2004 SuperScan analog TV. I used the instructions in the panasonic booklet several times, and I got no result. How do I make this remote work with my TV, too?

    1 AnswerTiVO & DVRs1 decade ago
  • What is that drainage system called?

    You know in San Fransisco, they have that really wide drainage system that Nick Cage drives down in Eleanor in gone in 60 seconds, the space shuttle lands on in the core and bumblebee is captured in them in the first transformers movie? Well I was wondering, what is the name for one of those?

    2 AnswersWords & Wordplay1 decade ago
  • Help with Halo 1 for PC?

    I am using Windows Vista and I want to play multiplayer halo online, but it says i need "administrative privileges to download the required patch". I am running halo on the only account on our computer, and it is administrative. Why can't I use it?

    1 AnswerPC1 decade ago
  • You know those carnies?

    The get to go to all the concerts for free, don't they? Or at least listen to them!

    Suggested category: Sports- Cricket.

    2 AnswersPolls & Surveys1 decade ago
  • Where is the exterior thermometer on a 2002 Jaguar X-Type?

    It is reading way above the real temperature, maybe its up against something hot?

    2 AnswersMaintenance & Repairs1 decade ago
  • OHMYGOSH!! YOU TOO????????

    But, ...how, no, when?

    Suggested Category: Family & Relationships > Singles & Dating

    8 AnswersPolls & Surveys1 decade ago