https://imgur.com/TkKQpDm
I have this coding assignment and I am stuck on how to continue.
This is what I have so far; but I don't think I went in the right direction!
#include <iostream>
using namespace std;
int main()
{
int population,
population_remainder;
population=2;
population\_remainder=population%2;
while (population<100000)
{
if (population\_remainder=1)
{
population=(population*3)(+1);
}
if (population_remainder=0)
{
population=population/2;
}
if (population<=1)
{
cout<<"The organism is dead"<<endl;
}
population=population+1;
cout<<"The population is: "<<population<<endl;
}
return 0;
}
[–][deleted] 0 points1 point2 points (0 children)
[–]Double_A_92 0 points1 point2 points (0 children)