The Student Room Group

Programming

an alien lays X eggs each day (there are genders in this species) and the eggs hatch after Y days. if X is 3 and Y is 5, how many aliens will there be in 30 days after a single alien invades?
hint: make an array/list and use each slot to represent a day. Put a 1 in the first position and then calculate how many eggs are laid and when they will hatch.
Original post by Manny678
an alien lays X eggs each day (there are genders in this species) and the eggs hatch after Y days. if X is 3 and Y is 5, how many aliens will there be in 30 days after a single alien invades?
hint: make an array/list and use each slot to represent a day. Put a 1 in the first position and then calculate how many eggs are laid and when they will hatch.


Are you asking for help with this problem?
Original post by Manny678
an alien lays X eggs each day (there are genders in this species) and the eggs hatch after Y days. if X is 3 and Y is 5, how many aliens will there be in 30 days after a single alien invades?
hint: make an array/list and use each slot to represent a day. Put a 1 in the first position and then calculate how many eggs are laid and when they will hatch.


You can easily do this by just thinking a bit.
Original post by shadowdweller
Are you asking for help with this problem?


Got curious about what this was but realized it was Coventry..

Anyway, wouldn't it be better if this were moved to the CS help forum?
Original post by Binary Freak
Got curious about what this was but realized it was Coventry..

Anyway, wouldn't it be better if this were moved to the CS help forum?


Will do! :colone:
Original post by morgan8002
You can easily do this by just thinking a bit.


Go ahead then..........
Original post by welshieee
Go ahead then..........


It's more beneficial for OP to, than for someone to solve it or them
Original post by welshieee
Go ahead then..........


OP is supposed to be doing it.

Quick Reply

Latest

Trending

Trending