Hi,
I have an assignment that is somewhat similar to the last guys:
Write a class that will predict the size of a population of organisms. The class should store the starting # of ogranisms, their average daily population increase(as a percentage), and the number of days they will multiply. The class should have amethod that uses a loop to display the size of the population for each day.
Test the class in a program that asks the user for the starting size of teh pop., thier avg daily increase, the # of days they will multiply. The program should display the daily pop.
Input validation: do not accept a number < 2 for the starting size of the pop. do not accept a negative number for avg daily pop increase. Do not accept a # less than one for the # of days they will multiply.
I have an assignment that is somewhat similar to the last guys:
Write a class that will predict the size of a population of organisms. The class should store the starting # of ogranisms, their average daily population increase(as a percentage), and the number of days they will multiply. The class should have amethod that uses a loop to display the size of the population for each day.
Test the class in a program that asks the user for the starting size of teh pop., thier avg daily increase, the # of days they will multiply. The program should display the daily pop.
Input validation: do not accept a number < 2 for the starting size of the pop. do not accept a negative number for avg daily pop increase. Do not accept a # less than one for the # of days they will multiply.
Comment