
population of country calculate: p*(1+r/100) at the end of year 2007 write a class program find the population of the country at the end of each year 2001 to 2007. p is population and r is the growth rate. class name :population date Members : float p,r Member methods:- population (in a, int b): Constructor to initialize p and r with a and b respectively. void print(): to calculate and print the population of each year from 2001 to 2007.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.