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 32,203 points

Mogey

Favorite Answers47%
Answers262
  • How do I go about starting this problem? And does it float?

    An ocean going vessel has a mass of 9.5 tons and a hull volume of 6500 cubic feet. Determine the maximum cargo load for this vessel (lbs) if we assume that seawater has a specific gravity of 1.03. How would your answer change if you knew that the boat plans to unload in a freshwater port with a water temperature of 59F?

    1 AnswerEngineering8 years ago
  • I have liked this girl since high school, now I go to college with her, and still like her. What should I do?

    In my freshman year in high school, I met this amazing woman (I know, I was young). We went to a dance together, and really hit it off well, and soon became good friends. Well, she was a senior (I am old for my year in school), so she graduated and went to college. My sophomore year, I became friends with her brothers, and we all still hang out together when we get the chance. The only reason I say this is because it makes the situation stickier. Anyway, fast forward to my freshman year in college. I had only seen her when she was on break, and hadn't actually gone on a real date (we had hung out one on one) until after this year. I didn't see her at all during the first quarter, and was able to go on dates with a couple of other women. Then, I texted her one day and we saw each other pretty soon after that. It was at that time I realized why I didn't ask to hang out with her: I was immediately in love all over again. Even when she had a boyfriend, I still was deeply in love with her. Before the summer, she broke up with him, and I asked her on a date a couple weeks ago. She finally said yes, and we had an amazing time. At the end of the night, she even said that she would like to take me on a date sometime. Obviously, I was extremely excited about that. Fast forward again to today, and she hasn't gone on that date with me yet. We've hung out one on one once, and have seen each other in a group setting multiple times. I asked to see her today, and she told me we couldn't hang out because she wanted to be with her mom for a day (she's moving back to college soon) and I told her I understood. Well, I was hanging out with her brother last night and I overheard her talking to a previous bf (who was there) about hanging out today. So as I was leaving, I kinda said "Have fun with [bf's name] tomorrow :)" and she said maybe we could get together too. Well, I texted her today and she told me that she didn't want to. So now I'm kinda stuck, because I still really like her, but at the same time, idk how to proceed. Any ideas?

    tl;dr - I still am in love with the same woman I liked my freshman year of high school, but idk if she likes me back.

    2 AnswersSingles & Dating9 years ago
  • compiled program will not run in linux mint?

    I'm compiling using the gcc compiler, and there are no errors, so it is able to output my a.out file. However, I am still unable to open the new file. any ideas why it keeps giving me the error "command not found" even when I am in the correct directory? Thanks.

    Also, if you were wondering, I am sure it is a.out as I am not using the -o flag when compiling.

    1 AnswerProgramming & Design9 years ago
  • file will not reverse correctly?

    I am trying to write a function that will print what is in the file and the reverse of it. however, I am running into trouble with the reverse function. it is only printing the final line. How do I get it to print every single line, in reverse, in reverse order

    sample

    input:

    This

    is

    a

    test

    output:

    tset

    a

    si

    sihT

    I have this so far:

    #include<stdio.h>

    #include<string.h>

    #define MAX_LEN 20

    void filePrint(char file[]);

    void wordReverse(char rev[]);

    int main()

    {

    char print[20];

    printf("Enter a file to reverse: ");

    scanf("%s", print);

    filePrint(print);

    return 0;

    }

    void filePrint(char file[])

    {

    char letter[20], reverse[MAX_LEN];

    int len, h;

    FILE* fp;

    len = strlen(file);

    fp = fopen(file, "r");

    printf("The file before reversing:\n");

    do

    {

    if(fscanf(fp, "%s", letter) ==1)

    {

    printf("%s\n", letter);

    }

    }while(!feof(fp));

    printf("The file reversed:\n");

    for(h=0; h<len; h++)

    {

    reverse[h] = letter[len-1-h];

    reverse[len] = '\0';

    }

    printf("%s\n", reverse);

    fclose(fp);

    }

    what am i doing wrong? why is it only printing "tset"? Thanks in advance!

    2 AnswersProgramming & Design9 years ago
  • Why is my program outputting the last word twice?

    it's supposed to read in the string and output each word on a separate line. it is doing this, except it's doing the last word twice. Here's a sample:

    input:

    This is a test

    output:

    This

    is

    a

    test

    test

    Why is it doing this? can you look at my code and help me figure out why? Thanks in advance!

    #include<stdio.h>

    void filePrint(char file[]);

    int main()

    {

    char print[20];

    printf("Enter a file to print: ");

    scanf("%s", print);

    filePrint(print);

    return 0;

    }

    void filePrint(char file[])

    {

    char letter[1000];

    FILE* fp;

    fp = fopen(file, "r");

    while(!feof(fp))

    {

    fscanf(fp, "%s", letter);

    printf("%s", letter);

    printf("\n");

    }

    fclose(fp);

    }

    1 AnswerProgramming & Design9 years ago
  • why does this function always return 0?

    I have just finished my code and it works except for the fact that no matter what, this function returns 0. can someone help me see my error? everything else in the function except for the change.

    int bills(double paid, double price, int *twenties, int *tens, int *fives, int *ones)

    {

    int change;

    *twenties = (paid-price)*100/2000;

    *tens = ((int)(paid-price)*100 % 2000)/1000;

    *fives = (((int)(paid-price)*100 % 2000)%1000)/500;

    *ones = ((((int)(paid-price)*100 % 2000)%1000)%500)/100;

    change = ((((int)(paid-price)*100 % 2000)%1000)%500)%100;

    return change;

    }

    1 AnswerProgramming & Design9 years ago
  • is there a way to write a %d value as space when it equals 0?

    I have to print a table and I have everything in the array initialized to 0. As the player plays, it is supposed to write in values, so I need %d. since it's a dice rolling game, they need to go between 2 and 12. can anyone help me? i have the code written like this, and I need to print out spaces instead of numbers before the player plays.

    printf("\n\n-------------------------------------------------------------------\n");

    printf("|Round | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |Total|\n");

    printf("|Human | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d |\n", ps[0], ps[1], ps[2], ps[3], ps[4], ps[5], ps[6], ps[7], ps[8], ps[9], ps[10]);

    printf("|Computer | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d | %2d |\n", cs[0], cs[1], cs[2], cs[3], cs[4], cs[5], cs[6], cs[7], cs[8], cs[9], cs[10]);

    printf("-------------------------------------------------------------------\n");

    4 AnswersProgramming & Design9 years ago
  • problem with my C code?

    I am having trouble with my code output. It is compiling fine, but the average is coming out incorrectly. Can anyone tell me what I am doing wrong? This is the first time I am dealing with arrays, so I'm thinking there's a problem with the function reading in the array.

    #include<stdio.h>

    #define SIZE 35 /*defines how many tests can be entered*/

    /*Function prototypes*/

    double calcAvg(int entered, int tests[]);

    int main()

    {

    int tests[SIZE]; /*allows up to 35 tests to be entered*/

    int i=0; /*keeps track of the test number*/

    int p; /*allows the printing of test scores*/

    double avg; /*sum of all test scores*/

    while(i<SIZE && tests[i-1] !=-1)

    {

    printf("Enter test score %d: ", i+1);

    scanf("%d", &tests[i]);

    i++;

    }

    printf("Number of scores entered: %d\n", i-1);

    printf("Test scores entered:");

    for(p=0; p<(i-1); p++)

    {

    printf(" %d ", tests[p]);

    }

    printf("\n");

    avg = calcAvg(i, tests);

    printf("Average test score : %f\n", avg);

    return 0;

    }

    /*Functions*/

    double calcAvg(int entered, int tests[])

    {

    int avg;

    int i;

    for(i=0; i<=entered; i++)

    {

    avg = tests[i]/(double)entered;

    }

    return avg;

    }

    any help would be great. thanks in advance!

    2 AnswersProgramming & Design9 years ago
  • is anyone else having connection problems on assassins creed revalations?

    I have it for the computer, and I am unable to connect in the ubisoft launcher. It says there are internet problems, but as you can see by my question, I can connect to the internet fine. Is anyone else experiencing these problems?

    1 AnswerVideo & Online Games9 years ago
  • what's the difference between mellophone mouthpieces and flugelhorn mouthpieces?

    I marched with the sacramento mandarins this year, and we used marcinkiewicz mouthpieces on our mellos. but, when I got home and tried to buy one, they didn't have a section for mellophone on their website. I'm wondering if we were using flugelhorn ones. is there a difference?

    1 AnswerClassical1 decade ago
  • computer upgrade and registry problem?

    I am going to get the new i5 once it comes out, so i know my computer won't boot becuase i will have to replace my motherboard. That is fine, except i have a few games that i want to keep installed. If i copy the registry into my new install and my whole program files folder, will i be able to keep my saves and installs?

    1 AnswerSoftware1 decade ago
  • is the psp worth buying?

    I can get the 3000 for $89 through gamecrazy, but there aren't many new games coming out for it. Is it worth $89, or should I just hold off?

    5 AnswersVideo & Online Games1 decade ago
  • Shiny pokemon question?

    I have a shiny pokemon, and I know this because it does the sparkly thing every time I enter a battle. But, when I look at a summary of it, it does not have full sheen. is this normal?

    5 AnswersVideo & Online Games1 decade ago
  • Is the DSi worth buying?

    I have the original (fat) ds, and i was looking into getting a DSi. is it worth the $170 or not? I have been saving up for a while now and I'm pretty sure I have enough, but I need to know if it is worth buying or not. Please answer only if you own a DSi.

    2 AnswersOther - Games & Gear1 decade ago
  • Holt Physics answers?

    I am a teacher's assistant at a high school, and I am using a review copy of Holt Physics. I would like to assign some homework out of the book, but so I can grade it I need the answers. Unfortunately, the review copy is only a student book, so it does not have any. Can anyone direct me to a website or email that I can use to get them? Thank you in advance.

    2 AnswersPhysics1 decade ago
  • when does the psp go get released?

    I know they will announce it at e3, but when is it actually being released?

    1 AnswerVideo & Online Games1 decade ago
  • Set Ubuntu Universal/Default theme? (URGENT!)?

    I have the XPgnome theme for ubuntu, and I want to set it for all users. I am at a school with more than 2000 users, so setting each one by one would be much too time consuming and unnecessary. Is there a way to set a theme for every user on our server at one time? It has to be default so if i straight up create a new account, it will already have that certain custom theme. Thanks.

    PS btw, my guess would be to patch human theme but even i'm not sure bout that. is there any theme management tools out there for this issue or is it gonna be all terminal stuff?

    2 AnswersSoftware1 decade ago
  • Directx 10 and Windows 7?

    Is Directx 10 compatible with Windows 7 beta?

    2 AnswersSoftware1 decade ago