Question: Your class Program . java should contain code to test your Population object . Here is an example of the steps to test your code

Your classProgram.javashould contain code to test yourPopulationobject. Here is an example of the steps to test your code in the classProgram:
1. Create an object of typePopulation.
2. Set the current population of that object to a number such as: 9870 ; use methodsetPopulation().
3. Read and display the current population to test the correctness of the methodgetPopulation().
4. Using the methodgetNumberOfYearsToReachThisPopulation()with increase rate of 10% and a target population of 30000 find the number of years to reach that target and display that information.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!