Reference no: EM132057194
Program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily population increase (as a percentage, expressed as a fraction in decimal form: for example 0.052 would mean a 5.2% increase each day), and the number of days they will multiply. A loop should display the size of the population for each day.
Prompts, Output Labels and Messages.The three input data should be prompted for with the following prompts: "Enter the starting number organisms: ", "Enter the daily increase: ", and "Enter the number of days the organisms will multiply: " respectively. After the input has been read in successfully, a table is produced, for example:
----------------------------
2 300.0
4 675.0
Under the heading is a line of 29 dashes followed by one line for each day, showing the day number and the population at the beginning of that day.
Input Validation.Do not accept a number less than 2 for the starting size of the population. If the user fails to satisfy this print a line with this message "Invalid. Must be at least 2. Re-enter: " and try to read the value. Similarly, do not accept a negative number for average daily population increase, using the message "Invalid. Enter a non-negative number: " and retrying. Finally, do not accept a number less than 1 for the number of days they will multiply and use the message "Invalid. Enter 1 or more:".
Familiarity with the eclipse environment
: After you gain familiarity with the Eclipse environment, you are going to create a very simple Java program, and run it using Eclipse.
|
Member variable of type double
: Define a class named Payment that contains a member variable of type double that stores the amount of the payment and appropriate accessor and mutator methods
|
Demonstrate the class in a program that contains a car
: Demonstrate the class in a program that contains a Car object, and then calls the accelerate method five times. After each call to the accelerate method
|
Create a very simple four function integer calculator
: Create a very simple four function integer calculator with buttons for Add, Subtract, Multiply, and Divide, and with two text-type input fields.
|
Predict the size of a population of organisms
: Program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average
|
Create the program for an atm machine
: How can we create the program for an ATM MACHINE to perform the following tasks
|
Looking for help setting-up a java class
: Looking for help setting-up a Java class, with the following requirements:
|
Demonstrate the class in a program that takes 12 doubles
: Demonstrate the class in a program that takes 12 doubles from the user (take the doubles in the order of the months of the year, the first
|
Java application based on your pseudo code
: Can somebody help me write out a pseudo code, and help me solve the following according to the pseudo code
|