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.
![](https://s.yimg.com/ag/images/5905/55900965191_4bc348_192sq.jpg)
Leonard
Both my parents are Permanent Residents and they want to bring my grandma for a visit what do they have to do?
Okay so both my parents are permanent residents and want to bring my grandma for a visit. What papers, legal actions, or forms do my parents have to fill out also What does my grandma need besides passport. Any help is appreciated .
5 AnswersImmigration7 years agoAx = 0 General Solution in Linear Algebra?
Given the matrix A
[1 4 5 2]
[2 1 3 0]
[-1 3 2 2]
I need to find the general solution for A x = 0 with vector arrows on top of x and 0.
Also the basis for the nullspace of A.
I found the Nullspace(A) which I got N(A) = spans { [-1 -1 1 0], [ 2/7 -4/7 0 1] }
but how would i find the general solution and the basis of N(A).
1 AnswerMathematics8 years agoC++ question Strings?
My first problem is figuring out how to reverse the string making input: string hello and hi
and changing it into : ih dna olleh.
My second problem if the do while loop and I can't seem to exit to display my while invalid choice loop.
Other than that everything else works fine.Also I was told not to use library functions only string and char operators. Thank you, your help is appreciated.
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int countWords(string);
int countConsonants(string);
int main()
{
string input;
int num;
char selection;
cout << "Please enter a word, a sentence, or a string of numbers." <<endl;
getline(cin, input);
do{
cout <<"\nUSE THIS MENU TO MANIPULATE YOUR STRING" <<endl
<<"---------------------------------------" <<endl
<<"1) Inverse String" <<endl
<<"2) Reverse String" <<endl
<<"3) To Uppercase" <<endl
<<"4) Count Number Words" <<endl
<<"5) Count Consonants" <<endl
<<"6) Enter a Different String" <<endl
<<"7) Print the String" <<endl
<<"Q) Quit" <<endl;
cin >> selection;
cin.ignore();
while(selection < '1' && selection > '7' && selection !='Q' && selection != 'q')
{
cout <<"\nInvalid selection. Please try again."<<endl
<<"USE THIS MENU TO MANIPULATE YOUR STRING" <<endl
<<"---------------------------------------" <<endl
<<"1) Inverse String" <<endl
<<"2) Reverse String" <<endl
<<"3) To Uppercase" <<endl
<<"4) Count Number Words" <<endl
<<"5) Count Consonants" <<endl
<<"6) Enter a Different String" <<endl
<<"7) Print the String" <<endl
<<"Q) Quit" <<endl;
cin >> selection;
cin.ignore();
}
if(selection == '1')
{
char next;
for(int i = input.length()-1; i >=0; i--)
{
next = input.at(i);
if(islower(input[i]))
{
input[i]= toupper(next);
}
else if(isupper(input[i]))
{
input [i]= tolower(next);
}
else if(ispunct(input[i]))
{
}
else if(isdigit(input[i]))
{
}
else
{
}
}
}
else if(selection == '2')
{
for(int i = input.length()-1; i >=0; i--)
{
input[i];
}
input;
}
else if(selection == '3')
{
char next;
for(int i = input.length()-1; i >=0; i--)
{
next = input.at(i);
if(islower(input[i]))
{
input[i]= toupper(next);
}
}
}
else if(selection == '4')
{
num = countWords(input);
cout <<"The string \"" <<input <<"\" has " <<num <<" word(s)";
}
else if(selection == '5')
{
num = countConsonants(input);
cout <<"The number of consonants in the string is " <<num <<".";
}
else if(selection == '6')
{
string message;
cout <<"Enter a different string : ";
getline(cin, message);
input.swap(message);
cin.ignore();
}
else if(selection == '7')
{
cout <<"The current string is: " << input <<endl;
}
else
{
}
}while(selection != 'q' || selection !='Q');
cout << "\nYou have chosen to quit the program. Thank you!"<<endl;
system("pause");
return 0;
}
int countWords(string enter)
{
int count = 0;
char next;
for(int i=0; i<int(enter.length());i++)
{
next = enter.at(i);
if(isspace(enter[i]))
{
count++;
}
}
return count + 1;
}
int countConsonants(string enter)
{
int count = 0;
int minus = enter.length();
char next;
for(int i=0; i<int(enter.length());i++)
{
next = enter.at(i);
if(next == 'a' || next == 'A' || next == 'e' ||
next == 'E' || next == 'i' || next == 'I' ||
next == 'o' || next == 'O' || next == 'u' ||
next == 'U')
{
count++;
}
if(isdigit(next))
{
count++;
}
if(isspace(next))
{
count++;
}
if(ispunct(next))
{
count++;
}
}
return minus - count;
}
1 AnswerProgramming & Design8 years agoLinear algebra - tranformations?
I need help understanding this problem.
Le T: R^2 --> R^3 be a linear transformation such that T(e1) = u1 and T(e2) = u2, where
u1 = [ 1 0 -1 ] and u2 = [2 1 0 ]
i need to figure out one and i can figure out the rest
find
a) T ( [ 1 1 ] )
thank you in advance
1 AnswerMathematics8 years agoLinear Algebra - linear transformation?
Hello I am having trouble understanding the problem and how to start.
let T: R^2 --> R^2 be a function given in exercise 1. show that for each B in R^2 , there is an x in R^2 such that T(x) = b.
function from exercise 1
T: R^2 --> R^2
T([x1 ]) = [ 2x1 - 3 x2]
[x2] [-x1 + x2 ]
thank you any help will be appreciated
1 AnswerMathematics8 years agoMore pre-calculus problems?
I need help in these following problems show work.
1.prove the identity. tan^2 (x/2 + π/4) = (1+sin x)/ (1-sin x)
2.find an angle between 0 and 2π that is coterminal with the given angle.
a. -7π/3
b. 10 radians
3. Find the exact value of the expression. cos [sin^ -1 (5/13) - cos^ -1 (4/5)]
3 AnswersMathematics1 decade agoPrecalculus Problems only 2?
I need help in these following problems show work
1.find all solutions of the equation. sin^2x = 4 - 2cos^2x
2.convert the given polar equation to rectangular coordinates. r = 1 / (1+sinθ)
your help is appreciated i will give 10 points to the one who answers both with work
2 AnswersMathematics1 decade agoShould Welfare be limited (amount of time in usage) and a one shot thing?
Do you believe Welfare should be a one shot thing and only for a limited time? Also who do you think will be against this?
8 AnswersOther - Politics & Government1 decade ago