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.
Simar Chhabra
Ideas for a personal Narrative Essay?
1 AnswerHomework Help8 years agoFor what values of g is there a 4-regular, 4-chromatic graph of girth g?
This is a TAOCP problem
1 AnswerProgramming & Design9 years agoHow to get this girl to like me?
So like there's a few things you should know: First of all we're in the same grade, going to 9th, and we're going to different high schools. I just met her this year and we became good friends. I slow danced with her once but I don't know if she really wanted to. I think she knows I like her because her friend told me. How do I get her to like me back?
1 AnswerSingles & Dating9 years agoIn C, what data type do you use for a 64 bit integer?
What data type would I use to define the variable: num = 600851475143
6 AnswersProgramming & Design9 years agoWhat is wrong with this program?
Note: This is in C
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a2 + b2 = c2
For example, 32 + 42 = 9 + 16 = 25 = 52.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.
So i do this and here is my program to find a,b and c.
#include <stdio.h>
main()
{
int a,b,c;
for (a=0;a<=1000;a++)
{
for (b=0;b<=1000;b++)
{
for (c=0;c<=1000;c++)
{
if (a+b=c)
{
if ((a*a)+(b*b)=(c*c))
printf("%d,%d,%d",a,b,c);
}
}
}
}
getch();
}
It keeps on saying invalid 1value. What's wrong and what does invalid 1 value mean?
1 AnswerProgramming & Design9 years agoWhat's wrong with this C program?
I am trying to create a C program that counts the number of letters for each letter in a certain string. ie in "Bee" b would have one value and e would have two as a value. The EOF is with a '.'
/*countletter.c*/
#include <stdio.h>
#include "simpio.h"
#include "genlib.h"
#define maxLetters 26
void initArray(int letters[]);
void frequency(int letters[]);
void displayArray(int letters[]);
main()
{
int letters[maxLetters];
printf("This program counts the frequency of letters in a program. Signal \nthe EOF with a dot.\n");
initArray(letters);
frequency(letters);
displayArray(letters);
getch();
}
void initArray(int letters[])
{
int i;
for (i=0;i<=maxLetters; i++)
{
letters[i]=0;
}
}
void frequency(int letters[])
{
char ch;
int index;
while ((ch=getchar())!='.')
{
if ((ch>='A')&&(ch<='Z'))
{
index=ch-65;
letters[index]=letters[index]+1;
}
if ((ch>='a')&&(ch<='z'))
{
index=ch-97;
letters[index]=letters[index]+1;
}
}
}
void displayArray(int letters[])
{
char ch;
int count, index;
for (ch='A'; ch<='Z'; ch++)
{
index=ch-65;
count=letters[index];
if (count!=0) { printf("%c %4d\n", ch, count); }
}
}
1 AnswerProgramming & Design9 years agoC programmers need help!?
I need help on this code.. can you tell me whats wrong and help me fix it? thanks. I am trying to create a directory that stores NBA information.
#include <stdio.h>
main()
{
int i,j,k,l,m,numPlayers,playerrings,playermvp;
char players[numPlayers],playerTeam;
printf("This is an NBA player directory. Enter the player's name, his team, number of mvps such as all-star regular season or finals, and championships. \n");
printf("Then we will create a directory...\n");
printf("How many players are in this directory?: \n");
scanf("%d", &numPlayers);
for (i=0; i<=numPlayers; i++)
{
printf("Enter player number %d: \n", i + 1);
gets(players[i]);
}
for (j=0; j<=numPlayers; j++)
{
printf("What team does %s play on?: \n", players[j]);
scanf("%s", &playerTeam);
}
for (k=0; k<=numPlayers; k++)
{
printf("How many MVP's has %s won including all-star and finals?: \n", players[k]);
scanf("%d", &playermvp);
fflush(stdin);
}
for (l=0; l<=numPlayers; l++)
{
printf("How many championships has %s won?: \n");
scanf("%d", &playerrings);
}
printf("|-----------------------------------------------------------------------|\n");
printf("| %-30s | %s | %s | %s |\n", "Player", "Team", "MVPs", "Championships");
printf("|-----------------------------------------------------------------------|\n");
for (m=0; m<=numPlayers; m++)
{
printf("| %-30s | %-11s | %-9g | %-10.4d |\n", players[m], playerTeam, playermvp, playerrings);
}
printf("|-----------------------------------------------------------------------|\n\n");
system("pause");
getch();
}
2 AnswersProgramming & Design9 years agoI have more anwsers that Corey(F LA) but im not in the top ten?
i have like 1120 answers in basketball and im not in the top ten. How come?
6 AnswersBasketball1 decade agowhere can i watch the 2004 rookie game?
not the all-star game but the rookie vs sophomore game with lebron, melo, dwade, bosh vs stoudamire etc
2 AnswersBasketball1 decade agowho's gonna be better next season rodney stuckey or mike bibby?
3 AnswersBasketball1 decade agowhat would happen if the salary cap was $100 million?
5 AnswersBasketball1 decade agoready to here who actually made the decision happen?
i found it in the bloomberg network
lebron was gunna choose his team and then this old guy who is maverick carter's friend(lebron's agent)
he hatched an idea to make it on national television. lebron was hesitant but maverick carter convinced him by saying you can donate the money to the boys and girls club. then maverick carter made all the arrangements and it happened. ur thoughts?
4 AnswersBasketball1 decade agowho's the second best nba player in history?
we all now who is the best but who's second
21 AnswersBasketball1 decade agonext year how good will rodney stuckey be?
5 AnswersBasketball1 decade agowhat will be the pistons record next season?
8 AnswersBasketball1 decade agowho are the top 5 players of the 2007 nba draft?
i think it is
1. kevin durant
2. rodney stuckey
3. al horford
4. Luis Scola
5. Thaddeus Young
4 AnswersBasketball1 decade agowho is better fit rite now for the heat allen iverson or t-mac?
7 AnswersBasketball1 decade ago