rite a program that reads from the user three pieces of information: The current population of a country, the past population of a country, and number of years passed between past and current population. The program should then calculate the percent of growth rate of population and displays the results as shown in Figure 3. Note that percent ofgrowth rate of population is calculated using the following formula:

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter5: Inverse, Exponential, And Logarithmic Functions
Section: Chapter Questions
Problem 6DE
icon
Related questions
Question
Write a program that reads from the user three pieces of information: The current population of a country, the past population of a country, and number of years passed between past and current population. The program should then calculate the percent of growth rate of population and displays the results as shown in Figure 3. Note that percent ofgrowth rate of population is calculated using the following formula:
+
100%
3/5
50
35
1.35
Figure 2: Sample Run
Exercise 3:
Write a program that reads from the user three pieces of information: The current population of a country, the past
population of a country, and number of years passed between past and current population. The program should then
calculate the percent of growth rate of population and displays the results as shown in Figure 3.
Note that percent ofgrowth rate of population is calculated using the following formula:
current population- past population
past population
number of years
x 100
Percent of growth rate =
Name your program Lab3 Id ex3.py, where Id is your university Id. Include the design of your solution as
comments at the beginning of your program. Test your solution with different input data.
Please enter the orent population of the country: 230eee
Please enter the past enul
Son of the country: 25ee09
Please enter the cunberof years btreen past nd currentpopulation: 10
========== RRR
Curcent
Population
Past
Populatien
ber of
Growth
Rate
Fgure 3: Sample Run
Transcribed Image Text:+ 100% 3/5 50 35 1.35 Figure 2: Sample Run Exercise 3: Write a program that reads from the user three pieces of information: The current population of a country, the past population of a country, and number of years passed between past and current population. The program should then calculate the percent of growth rate of population and displays the results as shown in Figure 3. Note that percent ofgrowth rate of population is calculated using the following formula: current population- past population past population number of years x 100 Percent of growth rate = Name your program Lab3 Id ex3.py, where Id is your university Id. Include the design of your solution as comments at the beginning of your program. Test your solution with different input data. Please enter the orent population of the country: 230eee Please enter the past enul Son of the country: 25ee09 Please enter the cunberof years btreen past nd currentpopulation: 10 ========== RRR Curcent Population Past Populatien ber of Growth Rate Fgure 3: Sample Run
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
College Algebra
College Algebra
Algebra
ISBN:
9781938168383
Author:
Jay Abramson
Publisher:
OpenStax