Question: please help me with this C++ program and match it with the require input and result, thank you. The population of town A is less

 please help me with this C++ program and match it with

the require input and result, thank you. The population of town Ais less than the population of town B. However, the population of

town A is growing faster than the population of town B. Writea program that prompts the user to enter: 1. The population of

please help me with this C++ program and match it with the require input and result, thank you.

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: 1. The population of town A 2. The population of town B 3. The growth rate of town A 4. The growth rate of town B The program outputs: 1. After how many years the population of town A will be greater than or equal to the population of town B 2. The populations of both the towns at that time. (A sample input is: Population of town A=5,000, growth rate of town A=4%, population of town B=8,000, and growth rate of town B=2%.) Test case 1 Input 44 240 44 30 Expected Output (3) (2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!