C++ functions HOMEWORK!!

pls help me its my homework but im not enough in this subject.


İf P is the population on the first day of the year , B is the birth rate an D is the death rate, the estimated population at the end of the year is given by Formula :
P+(B*P/100)-(D*P/100)
The population growth rate is given by Formula
B-D
Write a program that prompts user to enter the starting population, birth and death rates,and n, the number of years.
The program should then calculate and print estimated population after n years.
The program must consists of the following functions:
growRate:This funciton takes as its parameter the birth and death rates and it returns the population growth rate
EstimatedPopulation : This function takes as its parameters the current population, population growth rate, and n , the number of the years.
The program should not accept negative birth rate,negative death rate,or population less than 2
Got any actual code or are you expecting the answer like the rest of the eternal september-ers?
Why does no one get that we will not do your homework for you...
Why not just a net change rate? Geez, you complicate things!
can anyone help me?
Show us the work you've done so far and maybe we'll help.

If you have a question about something you don't understand, ask it and maybe we'll answer it.


But we're not going to just give you a solution. This isn't a homework service.
if you are not "enough in it"... go to the documentation and read about c++...
Topic archived. No new replies allowed.