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.
kevin
Negate the following statement: If a triangle has two equal sides, then it is not equilateral.?
help soon please
1 AnswerMathematics9 years agoproblems in c++ (beginner)?
well its not working right it's suppose to work so that you enter a word or phrase and it converts you to the numbers that a phone would use to text... so hello would = 43556
#include <iostream>
using namespace std;
int main()
{
char letter;
int select = -1;
const int size = 81;
char sentence[size];
char digit;
int character;
int ctr = 0;
cout <<" Phrase: ";
cin.getline(sentence, size);
for (ctr = 0;ctr < size;ctr++)
{
if ( sentence [ctr] == 'A'|| sentence [ctr] == 'B'|| sentence [ctr] == 'C')
{
cout << sentence << " 2" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 2;
cout<<sentence[ctr];
ctr++;
}
if (sentence [ctr] == 'D'|| sentence [ctr] == 'E'|| sentence [ctr] == 'F')
{
cout << sentence << " 3" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 3;
cout<<sentence[ctr];
ctr++;
}
if ( sentence [ctr] == 'G'|| sentence [ctr] == 'H'|| sentence [ctr] == 'I')
{
cout << sentence << " 4" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 4;
cout<<sentence[ctr];
ctr++;
}
if ( sentence [ctr] == 'J'|| sentence [ctr] == 'K'|| sentence [ctr] == 'L')
{
cout << sentence << " 5" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 5;
cout<<sentence[ctr];
ctr++;
}
if ( sentence [ctr] == 'M'|| sentence [ctr] == 'N'|| sentence [ctr] == 'O')
{
cout << sentence << " 6" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 6;
cout<<sentence[ctr];
ctr++;
}
if ( sentence [ctr] == 'P'|| sentence [ctr] == 'Q'|| sentence [ctr] == 'R'|| sentence [ctr] == 'S')
{
cout << sentence << " 7" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 7;
cout<<sentence[ctr];
ctr++;
}
if ( sentence [ctr] == 'T'|| sentence [ctr] == 'U'|| sentence [ctr] == 'V')
{
cout << sentence << " 8" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 8;
cout<<sentence[ctr];
ctr++;
}
if ( sentence [ctr] == 'W'|| sentence [ctr] == 'X'|| sentence [ctr] == 'Y'|| sentence [ctr] == 'Z')
{
cout << sentence << " 9" << endl;
cout<<sentence[ctr] << endl;
sentence [ctr] = 9;
cout<<sentence[ctr];
ctr++;
}
else
{cout << " ." << endl;
}
}
return 0;
}
2 AnswersProgramming & Design9 years ago