Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions The 10-year increase for populations in the four states starting with the letter 'A' are shown below: State 2000 2010 Alabama 4447100 4779735 Alaska

Instructions

The 10-year increase for populations in the four states starting with the letter 'A' are shown below:

State

2000

2010

Alabama

4447100

4779735

Alaska

626932

710231

Arizona

5130632

6329013

Arkansas

2673400

2915921

a. Create two vectors representing the populations for the years 2000 and 2010, then use cbind to create a 4x2 population matrix from these two vectors

b. Create a vector which contains the values of percentage increase for each state between 2000 and 2010. Hint - use this formula for each element: (2010 value - 2000 value) / 2000 value

c. Use this vector to calculate another vector which predicts the 2020 populations, using the percentage increase value vector from step b. Hint - use this formula for each element: 2010 value * (1 + percentage increase value)

d. Use cbind to add the 2020 estimated population vector to the population matrix. Overwrite the original matrix object with the new one

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Describe the components of a workplace wellness programme

Answered: 1 week ago