Saturday, July 25, 2009

Determine which of the following are feedback loops, and which are not.?

For the feedback loops, determine which are positive and which are negative. Briefly describe your reasoning for each.


(a) Increase in global temperature » melting of Arctic permafrost » release of trapped methane into the atmosphere » increase in global temperature.


(b) Increase in global temperature » reduced use of fossil fuel for space heating » decrease of carbon dioxide released to atmosphere » decrease in global temperature.


(c) Increase in global temperature » alarm about global warming » conservation efforts that reduce use of fossil fuel » decrease of carbon dioxide released to atmosphere » decrease in global temperature.


(d) Increase in atmospheric carbon dioxide concentration » increase in plant growth due to carbon dioxide fertilization effect » decrease of atmospheric carbon dioxide concentration.


(e) Decrease in solar output due to change in sunspot activity » decrease in global temperature » increased reflectivity of the earth due to increased ice area.

Determine which of the following are feedback loops, and which are not.?
Dude, this class is ridiculously easy. And she gave us almost a week to do the hw. Holy crap you're lazy.



tanning

How do you find the primes from 1 to 100 using loops in C#?

I wrote and tested the below code in C#. I might point out if you want to make it more efficient, on the line of the j loop, instead of iterating to i-1, you could iterate to i/2 as it is impossible for any number to be divisible by a number more than half of it. However saying that since you are only looking for 1- 100 , this is fast enough... you should get the results in around 1 second.





int objStartVal = 1;


int objEndVal = 100;


int i, j;


for ( i=objStartVal; i%26lt;=objEndVal; i++ )


{


Boolean isPrime = true;


for (j=1;j%26lt;=i-1;j++)


{


if (j!=1)


{


if ((i % j) == 0)


{


isPrime = false;


}


}


}


if (isPrime)


{


MessageBox.Show(i + " is a prime number.");


}


}

How do you find the primes from 1 to 100 using loops in C#?
Well, not that it is that difficult, but it is more efficient to just use a hash table if you only need such a small group of prime numbers. There are only 26 numbers less than 100 that are prime (including 1).





If you're looking for an algorithm that will work for you, I suggest looking online or through just about any C programming book. Prime number finders are pretty common. My buddy writes them in different assembly languages he learns just because it's a simple little problem to solve.





But, if you just want the answer, here is a simple algorithm, and below is the link to learn more abou it:





ArrayList primeNumbers = new ArrayList();





for(int i = 2; i %26lt; 100; i++)


{


bool divisible = false;





foreach(int number in primeNumbers)


if(i % number == 0)


divisible = true;





if(divisible == false)


primeNumbers.Add(i);


}
Reply:I won't write the code for you as it sounds like a homework question, but here's the basic algorythm (skip 1, 2, 3 since you know they're prime):





(inside the loop) :


Divide the number by every number between 1 and itself, looking for a remainder each time. If once comes back with no remainder, it's not prime
Reply:i dunno in c#, but here it is in c++, convert it or something :p





#include %26lt;iostream%26gt;


#include %26lt;iomanip%26gt;


using namespace std;





int main()


{


int number, variable, display_num;





for (number = 3; number %26lt; 100; number++)


for (variable = 2; (number%variable %26gt; 0) %26amp;%26amp; variable %26lt; (number); variable++)


for (display_num = 0; ((number - variable) == 1) %26amp;%26amp; (display_num == 0); display_num++)


cout %26lt;%26lt; setw(5) %26lt;%26lt; number %26lt;%26lt; setw(5);


cout %26lt;%26lt; endl;





system("pause");


return 0;


}








sorry i don't know c#, i did this as an assignment a long time ago for c++, should be similar to what you are trying to get too. obviously this was a beginning course, i kinda of laughed at the code now that i see it, but it worked.



poems

How can i connect a music keyboard to the software fruity loops?

I'm not really familiar with the software so can't give you a solid answer to your question. But I do know that Pixel2Life has several tutorials on the software and you might be able to find the answer there. Here is the link:





http://www.pixel2life.com/tutorials/frui...



small business

New Reporting Process... What IF the Reporter had to Jump Flaming Loops to send in a Report?

and When a Person is Reported just click an Appeal button?

New Reporting Process... What IF the Reporter had to Jump Flaming Loops to send in a Report?
Hah, good one!
Reply:That's amazing, and a good idea too.


Then people won't anyhow report questions like that.



fashion accessories

Time and space are linked, planets/galaxies travel in closed loops, is that why history repeats itself?

And furthermore, with enough research, could we actually prove that history WILL repeat itself, and when?

Time and space are linked, planets/galaxies travel in closed loops, is that why history repeats itself?
You're asking a very complicated question using very simplified terms. And yes, given enough time and mathmatics we CAN calculate every aspect of the known and unknown universe. The only problem is, is that we don't understand much at all of the known universe. Not even electricity or what causes Electromotive Force. We have theories, but thats all we have. Einstein spent the rest of his life at Princeton trying to produce the "Theory of Everything". P.S. His Nobel didn't come from his paper on "relativity". Every microsecond or better results in somethings repeating themselves and other things not. Hence "Chaos Theory"! But what really can be counted on at this point are things called "Physical Laws of the Universe", which may change at a given moment. It's good mental masturbation. Try reading the Tao of Physics, if you can find a copy.
Reply:Too deep for me. Turn to God for all the answers. Report It

Reply:While there is some correlation between the position of Earth and conditions on Earth (like the seasons), there is no correlation between the position of Earth or the solar system in the galaxy and the recurrence of events in human history. You assume that there is some magical function that associates a certain place in spacetime with a certain flow of events on Earth; but what could that possibly be? There is absolutely no evidence to support this view. The observation that history tends to repeat itself can best be explained by the observation that the fundamental properties of the human mind and of the Earth itself have not changed radically over our history. If a certain human mindset, certain social conditions, and certain environmental factors lead to a certain flow of events x number of years ago, then an analogous set of conditions could lead to a similar flow of events today. You are correct in saying that planets and solar systems travel in fairly closed loops around the galaxy, but the revolution of the sun in the galaxy takes millions of millions of years, whereas human civilization has only been around for about 10,000. Your proposition sounds very good and exciting, but I fear it is a case of establishing a causality without knowing at all how that causality could possibly work.
Reply:Don't confused human history with orbital motions of astronimical objects like planets, stars and galaxies.





The reason we see repeating patterns in nature is because the physical world operates based on fundamantal laws that can be described using mathematics. The very fact that we can write an equation to describe the orbit of the Earth around the Sun implies that our universe uses patterns (i.e. a circle or ellipse for orbital path).





Now human history sometimes repeats itself NOT because our collective behavior can be described using some mathematical equation. It's just that we humans only live a short period of time, and what we've learned sometimes are not passed down to the next generation. Even for the last several thousand years, we have been recording our history, we sometimes fail to heed the lessons of the past, because we seem to learn better through making mistakes (yes the same mistakes), and not by reading about other people's mistakes.
Reply:History repeats itself because humans have not changed since they began recording their history. Our motivations have remained essentially the same: acquiring resources, including land, mates, shelter, etc.
Reply:History repeats itself because we learn from our mistakes. With we all need to learn to do. Also learn from every one Else's BOO Boos
Reply:History repeats itself because humans are too stupid to take any actions
Reply:No,it is all imagination
Reply:research it further, i m sure you will get a nobel prize for this.....
Reply:history repeats itself because people are stupid





this question will be asked again soon



website design

Which music software is the best; Apple Garageband, Fruity Loops, or Reason?

Which is the best music software?

Which music software is the best; Apple Garageband, Fruity Loops, or Reason?
The best is to chain garage band and reason. They are in every engineers toolbox.
Reply:Depends on what you want to do with it. Reason %26amp; FruityLoops are excellent for electronic music production (Reason was/is market leader, fruityloops is coming darn close as you get excellent value for the low price it sells), whereas Garageband is good for live recordings (although I would advice ProTools for that)



performing arts

Use for loops to construct a program that displays a pyramid of numbers on the screen.?

Hints


You may nest two inner loops, one to print spaces and one to print numbers (0-9), inside an outer loop that steps down the screen from line to line.


ask user to enter any number from 0 to 9. if he enter 3 out put will be.


*****1


****2 2


***3 3 3


**4 4 4 4


In the above sample there will no'*' in real and it is not appear in screan . it will write only for submitting sample.if I do not write * prew of sample is not correct in appearence.








PLEASE GIVE COMPLETE SOLUTION. THANKS

Use for loops to construct a program that displays a pyramid of numbers on the screen.?
I wrote my solution in perl. It should easily translate to other computer languages. C would be a good bet. Unfortunately, it didn't format as nice when I copied it into the answer box. Like the author of the question, I used an asterisk in place of the space.





#!/usr/bin/perl


#


# A Yahoo Answers programming answer


# This program prints a pyramid with each line numbered


# with the number of blocks in each layer.


#





print "Enter a number between 1 and 9. ";





$NUMBER = (%26lt;STDIN%26gt;); # Read input from standard input





chomp ($NUMBER); # Get rid of the trailing carriage return





print "\nCreating a Pyramid $NUMBER rows high\n\n";





$ROW_NUM = 1; # $ROW_NUM will count the number of rows





# The outer loop sets the number of lines to print





for ($LINES = $NUMBER; $LINES %26gt; 0; $LINES--) {





# The inner loops print the leading spaces followed


# by the $ROW_NUM row numbers.





# Print the leading spaces in the line





for ($i = $LINES; $i %26gt; 1 ; $i--) {


print "*"; # Replace the '*' with a space if you'd like.


}





# Print the Row Number $ROW_NUM times.


# Note that I print $ROW_NUM followed by a space for


# a nice evenly shaped pyramid.





for ($j = $ROW_NUM; $j %26gt; 0; $j--) {


print "$ROW_NUM "; # A space follows $ROW_NUM


}





print "\n"; # Print a newline to start the next line.





$ROW_NUM++; # Increment the row number counter.


}



necklace