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