Could I get some help understanding how to do this?
This is in C++.
You must use a loop structure to receive credit for this assignment.
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. Design an algorithm and write a C++ program that prompts the user to enter the population and growth rate of each town. The program 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 towns at that time.
Hint:
Use static_cast when calculating the new population every year.
Sample Run:
Population
*****************
Enter the current population of town A: 50
Enter the current population of town B: 8000
Enter the growth rate percent of town A: 4.5