Purchase Solution

Estimated Population Formula at End of the Year

Not what you're looking for?

Ask Custom Question

If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula:

P + (B * P)/100 - (D * P)/100

The population growth rate is given by the formula:

B - D

Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number f years. The program should then calculate and print the estimated population after n years. Your program must consist of the following functions:

a. growthRate: This function takes as its parameters the birth and death rate, and it returns the population growth rate.

b. estimatedPopuation: This function takes as its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years.

Your program should to accept a negative birth rate, negative death rate, or a population less than 2.

Format it in cpp.

Attachments
Purchase this Solution

Solution Summary

This solution provides guidelines on creating a program in cpp format to find the growth rate and the estimated population.

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Javscript Basics

Quiz on basics of javascript programming language.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.