Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This question is Chapter 5 Programming exercise #13 in C++ Programming: From Pro

ID: 3627168 • Letter: T

Question

This question is Chapter 5 Programming exercise #13 in C++ Programming: From Problem Analysis to Program Design (5th) book, written by D.S. Malik.
the population of a town A is less than the population of a 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 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. ( A sample input is: Population of town A = 5000, growth rate of town A = 4%, population of town B = 8000, and the growth rate of town B = 2%.) What I really need to know is the highlighted section. I do not know the math formula and syntax to use in order to figure the part out. If you want to do this entire question with the highlighted portion answered that would be great! This question is Chapter 5 Programming exercise #13 in C++ Programming: From Problem Analysis to Program Design (5th) book, written by D.S. Malik.
the population of a town A is less than the population of a 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 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. ( A sample input is: Population of town A = 5000, growth rate of town A = 4%, population of town B = 8000, and the growth rate of town B = 2%.) What I really need to know is the highlighted section. I do not know the math formula and syntax to use in order to figure the part out. If you want to do this entire question with the highlighted portion answered that would be great!

Explanation / Answer

Dear Friend here is the program u want PLEASE RATE #include using namespace std; void main() { int townA_pop,townB_pop,count_years=1; double rateA,rateB; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote