Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. Urban Population Dynamics Population modeling is useful from many different p

ID: 3816426 • Letter: 2

Question



2. Urban Population Dynamics Population modeling is useful from many different perspectives: planners at the city, state, and national level who look at human populations and need forecasts of populations in order to do planning for future needs. These future needs include housing, schools, care for the elderly, jobs, and utilities such as electricity, water and transportation. businesses do population planning so as to predict how the portions of the population that use their product will be changing. ecologists use population models to study ecological systems, especially those where endangered species are involved so as to try to find measures that will restore the population. medical researchers treat microorganisms and viruses as populations and seek to understand the dynamics of their populations; especially why some thrive in certain environments but don't in others. The basic equations we begin with are: (1) xk Axk ka 0,1,2,. and x(0) given with solution found iteratively to be (2) xk Akxo We are studying the population dynamics of Los Angeles for the purpose of making a planning proposal to the city which will form the basis for predicting school, transportation, housing, water, and electrical needs for the years from 2000 on. We'll take the unit of time to be 10 years, and use 7 age groups: 0-9, 10-19, 50-59, 60+. Suppose further that the population distribution as of 1990 (the last census) is (3.1,2.8, 2.0, 2.5, 2.0, 1.8, 2.9) (x105) This is the xo vector.) and that the Leslie matrix,A, for this model appears as

Explanation / Answer

open class Car {
private int yearModel;
private String make;
private int speed;
/The constructor acknowledge the auto's year model and make as contention
/The constuctor ought to relegate 0 to the speed field
open Car (int yrModel, String carMake)
{
yearModel = yrModel;
make = carMake;
speed = 0;
}
open void setyearModel(int yrModel)
{
yearModel = yrModel;
}
open void setMake (String carMake)
{
make = carMake;
}
open void setSpeed(int carSpeed)
{
speed = carSpeed;
}
open int getYearModel()
{
return yearModel;
}
open String getMake ()
{
return make;
}
open int getSpeed ()
{
return speed;
}
open void AccelerateSpeed (int speed)
{
speed = speed + 5;
}
open void BrakeSpeed (int speed)
{
speed = speed - 5;
}
}
]
[/import javax.swing.JOptionPane;
open class MyNewCar {
open static void main(String[] args) {
Auto myCar = new Car (2010, "Honda");
int speed = myCar.getSpeed();
speed = Integer.parseInt(JOptionPane.showInputDialog("Enter Your Speed" ));
for (int i = 0; i < 5; i++)
{
System.out.println("The" + " + myCar.getYearModel() + " + myCar.getMake() +
" + "is going " );
myCar.AccelerateSpeed(speed);
System.out.println("Your Speed now is: " + speed);
}
speed = Integer.parseInt(JOptionPane.showInputDialog("Enter Your Speed" ));
for (int i = 0; i < 5; i++)
{
System.out.println("The" + " + myCar.getYearModel() + " + myCar.getMake() +
" + "is going " );
myCar.BrakeSpeed(speed);
System.out.println("Your Speed now is: " + speed);
}
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote