Rabbits Community Center Geeks' Lounge by Ancient Dragon [ Rabbits](http://www.facebook.com/photo.php?fbid=417079118321547&set=a.223098324386295.105971.205344452828349&type=1&theater). Posted on Facebook by George Takel from Star Trek Re: Your favorite... Community Center Geeks' Lounge by princysharma90 Rabbits... Which one do you prefer Android OS or IOS..? Looping Behavior Programming Software Development by defychaos …)/(rabbitsBorn+rabbits))); rabbitsStarve = (0.00002*((rabbitsBorn+rabbits)*(rabbitsBorn+rabbits))); rabbitsEaten = (0.009*((rabbits+rabbitsBorn)-rabbitsStarve… { totalWolves = wolf_pop; } // How many rabbits survived? totalRabbits = ((rabbitsBorn+rabbit_pop)-(rabbitsStarve+rabbitsEaten));… Need help getting this program started Programming Software Development by Unebrion …in m months after the n pairs of rabbits are introduced to the island in New Zealand…getMaleAdultRabbits that returns the number of male adult rabbits. The main method of TestRabbitPopulation class should show…(); System.out.println("Enter number of pairs of rabbits: "); System.out.println(bunny.getFemaleBabyRabbits()); } }[/… Re: Assigning a pointer to the value of another pointer Programming Software Development by Falkoner1 … { if(type == rabbit){begin.sim[sim].field[x][y].rabbits = next;} } if(next != NULL){next->back =…!= NULL) { if(type == rabbit){begin.sim[sim].field[x][y].rabbits = this; next = pointer; back = NULL; pointer->back …) { if(type == rabbit){begin.sim[sim].field[x][y].rabbits = this; next = pointer; back = NULL; pointer->… Re: Need help getting this program started Programming Software Development by quuba … { System.out.println("Enter number of pairs of rabbits: "); int babyPair = 1; System.out.println(… own // // hiere is month later //1.The rabbits are able to mate at age of one month. …month later, each female (adultF) produces two new rabbits. //3.The probability that a new born rabbit … Need some help with n00b code project Programming Software Development by matrimforever …solve problems. For instance this problem: 'A scientist uses rabbits (yes, another rabbit problem) in her experiments. She …500 cages to hold her rabbits. Each cage holds one pair of rabbits. Assuming no rabbits ever die, when will …?' The program should printout how the rabbits multiply and produce baby rabbits which then add to the total rabbit… Code review please Programming Software Development by Leppie … br = 0; //mr = male rabbits //fr = female rabbits //br = baby rabbits int pr = 0; //pr = pregnant rabbits int total = 0; int temp =… to 0 } if (pr > 0) //if any rabbits pregas { br = pr * 2; //2 babies per pregnant… Question: grep looping over two file types Programming Software Development by llocar …[CODE]grep "some important info about rabbits" rabbits.data >> rabbits.txt[/CODE] Very simple, but this must …. The files always have the same prefix (e.g. rabbits), but the file suffixes are different (.data, .txt). …The files must match - only info from rabbits.data should go into rabbits.txt etc I'm sure this must be… Re: **i Need Help Fast** Programming Software Development by hatch101 …public class RabbitPopulation { private int rabbits; private int rabbitChild; public int … int babyRabbits; public RabbitPopulation() { rabbits = 1; rabbitChild = 0; adultRabbits = rabbits; babyRabbits = rabbitChild; } public int… **i Need Help Fast** Programming Software Development by hatch101 … month. A month later, the female produces a pair of rabbits (one male, one female). 3. Assume that a female rabbit… always produces a pair of rabbits every month from the second month on. 4. Assume that… rabbits never die of old age. 5. Implement a method waitAMonth … Re: **i Need Help Fast** Programming Software Development by hooknc …you're having is, you're never actually removing the rabbits that are being hunted. The numbers that you're outputing… are the number of rabbits being hunted. But you're never actually removing those hunted…'m not positive that its taking the right number of rabbits. (But i'm not positive.) Here is the output … Assigning a pointer to the value of another pointer Programming Software Development by Falkoner1 …; %p\n\n", begin.sim[sim].field[x][y].rabbits, this);[/code] And I found that the pointer [ICODE]begin….sim[sim].field[x][y].rabbits[/ICODE] was equal to [ICODE]this[/ICODE], when my code… old value of [ICODE]begin.sim[sim].field[x][y].rabbits[/ICODE], it seems to be assigning it to the address… Re: **i Need Help Fast** Programming Software Development by Blackhawk357 …If I understand correctly, --newborn rabbits must wait a month to mate and mated rabbits must wait a month to make… pair) --You start with a pair of newborn rabbits Try running through a few months on paper with …just the basic rabbits (no hunter): Month #1 NewBornRabbits - 2 MatingRabbits - 0 … how to use loop in this question Programming Software Development by pratima … in Poole harbour is being monitored. there are curently 495 rabbits on the island. It is estimated that the population will… the rabbit population exceed 1500. [please use integral numbers for rabbits -rabbits should not have fractional parts .] Re: how to use loop in this question Programming Software Development by Dani …. The next year, there will be 20% of 495 more rabbits. The year after that, it will be 20% of however… many rabbits there are, meaning the number of new rabbits on the island each year will increase… Re: Need some help with n00b code project Programming Software Development by GloriousEremite Is that table correct? I would think that you should start with two rabbits, then the number should double each month (i.e., exponential growth of 2^x) Re: Need some help with n00b code project Programming Software Development by matrimforever … _end_ of month one, the adults make another pair of rabbits. So there are two pair now, but only one is… Re: Assigning a pointer to the value of another pointer Programming Software Development by axfv … you want to give begin.sim[sim].field[x][y].rabbits a new object at address this, you'll have to… begin.sim[sim].field[x][y].rabbits and then begin.sim[sim].field[x][y].rabbits = this; But I don't know… Re: Code review please Programming Software Development by Ketsuekiame You could make it OO I guess? Something that simple doesn't really need it though but if you want to do it as an exercise, try creating classes for the types of rabbits. Re: Code review please Programming Software Development by hnizamoglu [QUOTE=Ketsuekiame;1223224]You could make it OO I guess? Something that simple doesn't really need it though but if you want to do it as an exercise, try creating classes for the types of rabbits.[/QUOTE] I totally agree with that. C++ take its power from its OO paradigm. Other than that, it's actually a C code except cout :) Real time calculations Programming Software Development by Beancounter5 … started a small project centred around some crazy mutating breeding rabbits( sounds silly but I have learned an awful lot ,…about lists). Anyway , as each year passes the number of rabbits grow - not exponentially but very quickly all the same. …is a large degree or randomness in the number of rabbits that get produced each year. Though it's pretty … Re: **i Need Help Fast** Programming Software Development by leelee … program, I note that your constructor reads: [CODE]rabbits = 1; rabbitChild = 0; adultRabbits = rabbits; babyRabbits = rabbitChild;[/CODE][list] [*]How will your 1… Re: Assigning a pointer to the value of another pointer Programming Software Development by NathanOliver alright. what is going on here i believe is that [icode] begin.sim[sim].field[x][y].rabbits [/icode] is giving you a pointer of a pointer so to get down to the original pointer try [icode] *begin.sim[sim].field[x][y].rabbits [/icode] i hope that this will work Re: **i Need Help Fast** Programming Software Development by chrisbliss18 …: "I thought this was programming not Biology. How many rabbits are required for mating?", "Can I implement this… Re: **i Need Help Fast** Programming Software Development by leelee … brief said you were to start with one pair of rabbits. Your hunt method: Write down a piece of paper, with… Re: **i Need Help Fast** Programming Software Development by hatch101 … RabbitPopulation() { adultRabbits = 0; babyRabbits = 1; } //The method that makes the rabbits wait a month before mating. public void waitAMonth() { int babies… Re: Assigning a pointer to the value of another pointer Programming Software Development by Narue … by [ICODE]this [/ICODE]to the object pointed to by rabbits, you would dereference them both: [code=cplusplus] *a = *b; // Copy… Re: Assigning a pointer to the value of another pointer Programming Software Development by Falkoner1 … by [ICODE]this [/ICODE]to the object pointed to by rabbits, you would dereference them both: [code=cplusplus] *a = *b; // Copy… Re: Assigning a pointer to the value of another pointer Programming Software Development by NathanOliver If you want the address of the pointer you would want to say [code=c++] pointer = &begin.sim[sim].field[x][y].rabbits; [/code] that will give you the address of the pointer not the address that the pointer holds. hope thats what you wanted