Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions