Grade 11
/ Algorithms 5 exercises (including 4 corrected)
- Sum of the terms of a sequence (2 exercices)
End
As
long
as
b
What
is
the
purpose
of
this
algoritme?
E.7291
A
company
produces
bacteria
for
industry.
In
the
laboratory,
it
has
been
measured
that,
in
a
suitable
nutrient
medium,
the
mass
of
these
bacteria,
mea-sured
in
grams,
increases
by
20
%
in
one
day.
The
company
sets
up
the
following
industrial
device.
In
a
tank
of
nutrient
medium,
1
kg
of
bacteria
are
initially
introduced.
Then,
at
a
fixed
time
each
day,
the
nutrient
medium
contained
in
the
tank
is
replaced.
During
this
op-eration,
100
g
of
bacteria
are
lost.
The
company
sets
itself
the
target
of
producing
30
kg
of
bac-teria.
The
evolution
of
the
bacteria
population
in
the
tank
is
mod-eled
by
the
sequence
u
n
defined
as
follows
:
u
0
=
1
000
;
u
n
+1
=
1.2
·
u
n
−
100
The
company
wants
to
know
after
how
many
days
the
bacte-ria
mass
will
exceed
30
kg
.
The
following
algorithm
can
be
used
to
answer
the
problem
posed.
Copy
and
complete
this
algorithm.
Variables
:
u
and
n
are
numbers.
Processing:
u
takes
the
value
1
000
n
takes
the
value
0
As
long
as
.
.
.
.
.
.
do
u
takes
the
value
.
.
.
n
takes
the
value
n
+1
Fin
As
long
as
Output:
Display
.
.
.
.
.
.
https://chingmath.fr
chapExoCorrec/7291
sacados/7291