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.
mcr_raven [MCRmy TSN]
Need help with while loops C++?
I'm so close in getting the output right, but I'm having difficulty matching it to the correct output.
This what have so far: (numbers that are prompted are -1, 1, -2, 2 , -3, 3, and 0 of course.
{
int number = 1;
int counter=1;
int evenNumbers = 0;
int oddNumbers = 0;
int positiveNumbers = 0;
int negativeNumbers = 0;
cout << "Please enter a number (0 to exit): ";
cin >> number;
while(number != 0)
{
cout << "Please enter a number (0 to exit): ";
cin >> number;
if (counter%2 == 0)
{
evenNumbers = (counter - evenNumbers) -2;
}
if (counter%2 == 1)
{
oddNumbers = ((counter - oddNumbers) + 1);
}
if (positiveNumbers < number)
{
positiveNumbers = (positiveNumbers + 1);
}
if (negativeNumbers > number)
{
negativeNumbers = (negativeNumbers + 1);
}
counter = counter + 1;
}
cout << "You entered:" << endl;
cout << evenNumbers << " even numbers" << endl;
cout << oddNumbers << " odd numbers" << endl;
cout << positiveNumbers << " positive numbers" << endl;
cout << negativeNumbers << " negative numbers" << endl;
}
1 AnswerProgramming & Design10 years agoForce between two parallel currents?
Figure 29-56 shows five long parallel wires in the xy plane. Each wire carries a current i = 6.00 A in the positive x direction. The separation between adjacent wires is d = 5.95 cm. What is the net magnetic force per meter on each wire, due to the other wires? (Use N for newtons, and i, j and k as necessary.) Fig. 29-56 http://i781.photobucket.com/albums/yy95/mcr_raven/...
1) F1
2) F2
3) F3
4) F4
5) F5
I need help on this problem.
1 AnswerPhysics1 decade agoWhat would be a good topic to do a research paper on?
It has to be a controversial topic in the years 100-1500 C.E. within the Christian tradition.
10 AnswersReligion & Spirituality1 decade agoUFO Problem, need help?
PROBLEM: There are two charges q each of mass m attached together with a small string, and then attached to one of the threads of the UFO. Find the tension in the UFO’s thread assuming that the acceleration of the UFO is 4 g upward.
I can't seem to get the correct answer which is 10mg. Please help.
3 AnswersPhysics1 decade agoDoes anyone remember? MCR fans?
Does anyone remember when My Chemical Romance first appeared on TRL or MTV?
Comments bashing the band will be disregarded and given thumbs down.
6 AnswersRock and Pop1 decade agoAverage speed question?
An automobile travels in time t=2h with a speed of v= 40km/h, and afterwards it travels in time t=3h with a speed v= 60km/h. What is the average speed of the automobile?
I'm not sure if I have the right answer, but please help thank you.
1 AnswerPhysics1 decade agoMetals in distilled water?
Would magnesium, aluminum, copper, and zinc react with distilled water?
2 AnswersChemistry1 decade agoResearch topic, I need help?
I was thinking of doing a paper on the animals of the arctic region that are being affected, should I narrow it down more or is it fine as it is? Suggestion.
6 AnswersGlobal Warming1 decade agoAngle of depression and elevation?
A forest ranger looking out from a ranger's station can see a forest fire at a 35 degree angle of depression. The ranger's position is 100 feet above the ground. How far is it from the ranger's station to the fire?
A meteorologist measures the angle of elevation of a weather balloon as 41 degrees. A radio signal from the balloon indicates that it is 1503 m from her location. How high is the weather balloon above the ground?
1 AnswerMathematics1 decade agoNeed help with a book source?
Would The Complete Idiot's Guide be considered a good book source? It's for a research paper.
3 AnswersHomework Help1 decade agoPower problem, need help?
If the power of a car is 450 Watts and its a 10kg accelerating forward at 10m/s. How long is it accelerating?(distance is10m)
1 AnswerPhysics1 decade agoSimplifying.....Pythagorean Identities?
Simplify
cot^2 x + 1 / csc x
and
sec^2 θ + 1 / tan^2 θ
1 AnswerMathematics1 decade agoConvert to degrees or radians?
1) convert to degrees
7/9 of a revolution
2) convert to radians (in terms of pie)
3/4 of a rotation
3 AnswersMathematics1 decade agoPlease help me, it's for my Theology class (Vocation)?
Anyone can answer these questions:
1) Do you consider your work a job or a calling?
2) Do you consider your job vocation fulfilling or just a paycheck?
3) "What did you want to be when you were younger?"
4) How did you come to choose the job that you have now?
5) What advice would you give to someone before they choose a career path? (Job/Vocation)
6 AnswersReligion & Spirituality1 decade agoExponents...............Help!?
Simplify using only positive exponents then state the value of the expression
a) -8 ^ 3
b) (-3) ^ 10 (-3) ^ -5
1 AnswerMathematics1 decade agoHelp....Perpendicular Bisector!?
Can you EXPLAIN how you can find the perpendicular bisector of the segment joining the points A (-5,-2) and B (7,-4)
1 AnswerMathematics1 decade agoCan someone please help, Relative Motion?
A jet moving 500.0 km/h due east moves into a region where the wind is blowing at 120.0 km/h in a direction 30.0 degrees north of east. What is the new velocity and direction of the aircraft relative to the ground?
1 AnswerPhysics1 decade agoPlease help! Polynomial?
Can someone tell me the correct answer to this false statement, 6x-9 is the linear term in x³+x²+6x-9?
Thanks
1 AnswerMathematics1 decade ago