Write a program that estimates the yearly population of a country in the next few years. The program should allow the user to enter the current population of a country, the average age, the yearly population growth rate (as a percentage), and the number of years in which the population is to be estimated by using the following rates: Population Average Age Less than or equal to 40 years old (young population) Between 40 and 50 years old (middle-age population) Over 50 years old (old population) Sample Inputs and outputs: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This program calculates and displays the total yearly population of a country within a few years. How much is the average age of the population (years old)? 37 For how many years you wish to estimate the total population per year? 5 For which country would you like to estimate the yearly population? Australia Please enter the current population of the country in million: 27.1 What is the current year? 2022 Year 2022 (current year) 2023 2024 2025 Outcomes: The following table shows the total population of Australia from 2022 up to the next 5 years: Population (Million) 2026 2027 27.1 27.4 Population Growth Rate (yearly) 0.99% for the first 2 years and then, 0.85% afterwards. 27.6 27.8 0.52% for the first 2 years and then, 0.45% afterwards. 28.0 0.28% for the first 2 years and then, 0.15% afterwards. 28.3 Do you wish to calculate the yearly population for another country? (Y)es or (N)o: N
Write a program that estimates the yearly population of a country in the next few years. The program should allow the user to enter the current population of a country, the average age, the yearly population growth rate (as a percentage), and the number of years in which the population is to be estimated by using the following rates: Population Average Age Less than or equal to 40 years old (young population) Between 40 and 50 years old (middle-age population) Over 50 years old (old population) Sample Inputs and outputs: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This program calculates and displays the total yearly population of a country within a few years. How much is the average age of the population (years old)? 37 For how many years you wish to estimate the total population per year? 5 For which country would you like to estimate the yearly population? Australia Please enter the current population of the country in million: 27.1 What is the current year? 2022 Year 2022 (current year) 2023 2024 2025 Outcomes: The following table shows the total population of Australia from 2022 up to the next 5 years: Population (Million) 2026 2027 27.1 27.4 Population Growth Rate (yearly) 0.99% for the first 2 years and then, 0.85% afterwards. 27.6 27.8 0.52% for the first 2 years and then, 0.45% afterwards. 28.0 0.28% for the first 2 years and then, 0.15% afterwards. 28.3 Do you wish to calculate the yearly population for another country? (Y)es or (N)o: N
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 8PP: (Statistical) In many statistical analysis programs, data values considerably outside the range of...
Related questions
Question
In python please.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage