[ back to toc ]

for/while loops

Date: 2002/02/17 00:37

Q:
There are 9870 people in a town whose population increases by 10% each
year. The mayor of the town wants a report that displays the annual
population increase and determines how many years it will take for the
population to surpass 30,000.

Give the pseudocode of the logic required to solve this problem. Using the
logic depicted in the pseudocode, write a program to produce the required
results.
A:
Dear *NAME-DELETED*,

I can help you to prepare your homework if you have some problems and
questions. But I will not sole it instead of you. You did not even take
the time to write a letter but you only copy-paste the question you have
got.

Problems are not solved by themselves in life, you have to solve them.

Regards,
Peter

[ back to toc ]