Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*** in C++**** Problem: 2.11 (Population projection) Rewrite Programming Exercise 1.11 to prompt the user to enter the number of years and displays the population

*** in C++****

Problem: 2.11 (Population projection) Rewrite Programming Exercise 1.11 to prompt the user to enter the number of years and displays the population after the number of years. Use the hint in Programming Exercise 1.11 for this program. Here is a sample run of the program:

Enter the number of years: 5 The population in 5 years is 325932970

( Background mentioned: 1.11 The U.S. Census Bureau projects population based on the following assumptions:

One birth every 7 seconds

One death every 13 seconds n One new immigrant every 45 seconds

Write a program that displays the population for each of the next five years. Assume the current population is 312,032,486 and one year has 365 days. Hint: In C++, if two integers perform division, the result is the quotient. The fractional part is truncated.))

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

Step: 3

blur-text-image

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

1) First CH3CH2-Li + epoxide = ? then followed up with HCl =?

Answered: 1 week ago