Question: i need code in java please Write a program that calculates the size of a population of rabbits. The program should prompt the user to
i need code in java pleaseWrite a program that calculates the size of a population of rabbits. The program should prompt the user to enter the starting number of rabbits (if you entered a negative value the program should prompt you to re-enter), the daily population increase (if you entered a negative value, the program should prompt you to re-enter), and the number of days (if you entered a negative value, the program should prompt you to re-enter). For example, if you enter the following data: Starting number of rabbits: 2 daily increase (%): 30 Number of days to multiply: 5 Your result should look like below: Day Population 2.60 3.38 4.39 5.71 7.43 Write a program that calculates the size of a population of rabbits. The program should prompt the user to enter the starting number of rabbits (if you entered a negative value the program should prompt you to re-enter), the daily population increase (if you entered a negative value, the program should prompt you to re-enter), and the number of days (if you entered a negative value, the program should prompt you to re-enter). For example, if you enter the following data: Starting number of rabbits: 2 daily increase (%): 30 Number of days to multiply: 5 Your result should look like below: Day Population 2.60 3.38 4.39 5.71 7.43
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
