Question: Make a PopulationCalculator.java class file this will contain your main method and all the code. Get Positive number input for this program we neeed to

Make a PopulationCalculator.java class file this will contain your main method and all the code. Get Positive number input for this program we neeed to get three(3) input values. These all need to be positive numbers so you should use a while loop to check user input. Starting number of organisms(whole number), Average daily increase(get it as a percentage and will convert to the decimal), Number of days to calculatre population growth(whole number). Then, Calculate the population growth: Loop through the numbers of days based on user input. Within the loop you should add to the population the growth * population. Also remember that the population is a percentage so you need to convert it to it's decimal form. The program should calculate for each day AND print out the population rounded to 4 decimals. Use NumberFormat objects to help you here. Loop the Program: Make the program loop when the user enters in "y" or "Y".

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 Databases Questions!