Answer to Question #296890 in Algorithms for Fedii

Question #296890

The population of a town A is less than the population of town B. However, the population of 

town A is growing faster than the population of town B. Write algorithm using pseudocode and 

flowchart that prompts the user to enter the population and growth rate of each town. The 

algorithm outputs after how many years the population of town A will be greater than or equal to 

the population of town B and the populations of both the towns at that time. (A sample input is: 

Population of town A = 5000, growth rate of town A = 4%, population of town B = 8000, and 

growth rate of town B =2%)


1
Expert's answer
2022-02-12T04:34:10-0500

Pseudocode:

1 Read populationA and populationB

2 Read rateA and rateB

3 Set year equals 0

4 Repeat steps 5 - 7until populationA is less than populationB

5 Increment year by 1

6 Increment populationA by rateA/100

7 Increment populationA by rateA/100

8 Print year

9 Print populationA and populationB






Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Epafradito Dominick
22.02.22, 13:52

Oooh,, waoooh amazing. This application is nice

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS