Question: Solve using c++ code blocks 2. Population Growth: The population of town A is less than the population of town B. However, the population of
Solve using c++ code blocks 2. Population Growth: The population of 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 a program that prompts the user to enter the population and growth rate of both towns. The program outputs after how many years the population of town A will be greater than or equal to the population of town B. The program also prints the populations of both towns at that time. (A sample input is: Population of town A= 5000, growth rate of town A-496, population of town B-8000, and growth rate of town B-296.) Sample input/output Enter the population and the growth rate of A: 58004 Enter the population and the growth rate of B: 8000 2 After 25 years the population of A will be grater than the population of B The population of A is:13329.2 The population of B is:13124.8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
