Prove that limx→2 2^x=4 using the formal definition of limit​.​

Answers

Answer 1

Answer:

Refer to step-by-step

Step-by-step explanation:

Prove that, [tex]\lim_{x \to \22} 2^{x}=4[/tex]

Plug in the value of 2 into the limit.

[tex](2)^{2}=4[/tex]

Thus we proved the limit.


Related Questions

EXAMPLE 3.1.30. Let R be the relation on Z defined by ïRy ⇒ x − y is divisible by 3. Then R is an equivalence relation on Z. Find [0], [1], [2], [4], [-1]​

Answers

equation in slope-intercept form of the line that pae through the point (4, 7) and is parallel to the line represented by y = 2x - 5 is ( y - y1 ) = m( x - x1 ) => y - 7 = 2 (x-8) => 2x - y - 1 = 0

What is slope?

A number that specifies a line's direction and slope is known as the slope or slope of a line in mathematics. A line's steepness is determined by its slope. The "gradient overflow" is a mathematical expression for the gradient (the change in y divided by the change in x).

equation is -

y = 2x - 5

since these are parallel to each other,

slope, m= 2

now the equation is -

( y - y1 ) = m( x - x1 )

y - 7 = 2 (x-8)

2x - y - 1 = 0

To know more about slope visit:

brainly.com/question/3605446

#SPJ1

What's the equation and solution?​

Answers

Observing the given figure , It is a balanced balance which signifies both side should be equal, The answer is 2=-8-x and x=-10.

What do you mean by equations?

An algebraic expression in mathematics is an expression created using variables, constant algebraic numbers, and algebraic operations. A collection of one or more linear equations containing the same variables is known as a system of linear equations in mathematics. A set of two or more linear equations with two or more variables each constitutes a system of linear equations, all of which are taken into account simultaneously. Finding a numerical value for each variable in the system that will simultaneously satisfy all of the system's equations is necessary to identify the one and only solution to a system of linear equations.

What are the methods to solve system of equations?

There are three ways to solve systems of linear equations :

GraphingSubstitution methodElimination method

2=-8-x is the required balanced equation.

-x = 2 + 8

x= -10

To learn more about equations visit:

brainly.com/question/29657983

#SPJ1

You want to buy a $135,000 home. You plan to pay 5% as a down payment, and take out a 30 year loan at
6.1% interest for the rest.

How much is the loan amount going to be?

What will your monthly payments be?

How much total interest do you pay?

Suppose you want to pay off the loan in 15 years rather than 30. What will your monthly payment be?

Answers

On solving the provided question, we can say that - so, percentage - 400/500 X 100 = 80%

What is percentage?

A percentage in mathematics is a figure or ratio that is stated as a fraction of 100. The abbreviations "pct.," "pct," and "pc" are also occasionally used. It is frequently denoted using the percent symbol "%," though. The amount of percentages has no dimensions. With a denominator of 100, percentages are basically fractions. To show that a number is a percentage, place a percent symbol (%) next to it. For instance, if you correctly answer 75 out of 100 questions on a test (75/100), you receive a 75%. To compute percentages, divide the amount by the total and multiply the result by 100. The percentage is calculated using the formula (value/total) x 100%.

here,

total is 500

obtained is 400

so, percentage - 400/500 X 100 = 80%

To know more about percentage visit:

brainly.com/question/29306119

#SPJ1

A principal of $3600 is invested at 3.5% interest, compounded annually. How much will the investment be worth after 12 years? Use the calculator provided and round your answer to the nearest dollar. X S​

Answers

Answer:

$5043

Step-by-step explanation:

To find the value of the investment after 12 years, you can use the following formula:

A = P * (1 + r/n)^(nt)

Where:

A = final amount

P = principal

r = interest rate

n = number of times the interest is compounded per year

t = number of years

Plugging in the values from the problem, we get:

A = 3600 * (1 + 3.5/100)^(1*12)

Solving this equation, we get:

A = $5043.33

So, after 12 years, the investment will be worth $5043.33.

Lisette wrote the following algebraic expression to represent “4 times as large as the product of w and 11.”

Answers

The translation of the sentence "4 times as large as the product of w and 11" to an expression is 44w

How to translate the algebraic sentence to an expression

From the question, we have the following parameters that can be used in our computation:

“4 times as large as the product of w and 11.”

The number is represented with w

So, the statement remains unchanged as follows

“4 times as large as the product of w and 11.”

4 times as large means 4 *

So, we have the following representation

4 times as large as the product of w and 11 ⇒ 4 * the product of w and 11.

the product of means that we multiply

4 times as large as the product of w and 11 ⇒ 4 * w * 11

Evaluate the products

This gives

4 times as large as the product of w and 11 ⇒ 44w

Hence, the expression is 44w

Read more about word problem at

brainly.com/question/1781657

#SPJ1

Angelina has taken 27 of the 36 exams she needs to take to become a nurse. What percent of the exams has she taken?

Answers

The percentage of the exam that she has taken is 75%.

What percentage of the exam has she taken?

Percentage is a measure of frequency that is used to express the ratio of an amount as a number out of 100. The sign that is used to represent percentage is %.

In order to convert a number to percentage, multiply the number by 100. In order to determine the percent of exams that she has taken, multiply the ratio of exams taken and the total number of exams by 100.

Percent of the exams she has taken = (number of exams taken / total number of exams) x 100

Percent of the exams she has taken = (27 / 36) x 100

Percent of the exams she has taken = 75%

To learn more about percentage, please check: brainly.com/question/1698278

#SPJ1

i really need help with this, i dont get how to identify outliners and gaps stuff, please help?​

Answers

On solving the provided question, we can say that - the plotting data will be done by 3 to 24 ; 6 to 61 ; 5 to 56; 1 to 15

what is plotting data?

A graph that demonstrates the relationship between two or more variables is the most common way to depict a data set using a chart. Both hand-drawn and computer-drawn diagrams are acceptable. Start at the origin and move 2 units to the right before moving 3 units up to draw the coordinates for the point 2,3 on the coordinate plane. Make your points clear. As a result, the pink dot with the letter P on it denotes 2.3. A number line containing each value in your data collection should be first created before making a line chart. Then, on the number line, put an X (or dot) over each value of the data. Put an X over the number for each time a value appears in a record where it does.

so we have to plot data from the given data, we can do by

3 to 24 ; 6 to 61 ; 5 to 56; 1 to 15

To know more about plotting data visit:

https://brainly.com/question/29096917

#SPJ1

Keshawn is organizing textbooks on his bookshelf. He has a Spanish textbook, a biology textbook, a history textbook, and a writing textbook. How many different ways can he line the textbooks up on his bookshelf?

Answers

Answer: four textbooks

Step-by-step explanation:

Question
A scientist wants a 90 ounce acid solution with a concentration of 12%. She has concentrations of 8% and 18%. How
much of each solution must she use to get the desired concentration?

Answers

On solving the provided question, we can say that - the percentage value of 12 % of 90 = 10.8

What is percentage?

A percentage in mathematics is a figure or ratio that is stated as a fraction of 100. The abbreviations "pct.," "pct," and "pc" are also occasionally used. It is frequently denoted using the percent symbol "%," though. The amount of percentages has no dimensions. With a denominator of 100, percentages are basically fractions. To show that a number is a percentage, place a percent symbol (%) next to it. For instance, if you correctly answer 75 out of 100 questions on a test (75/100), you receive a 75%. To compute percentages, divide the amount by the total and multiply the result by 100. The percentage is calculated using the formula (value/total) x 100%.

here,

12% of 90 = 12/100 X 90

= 0.12 X 90 = 10.8

To know more about percentage visit:

https://brainly.com/question/29306119

#SPJ1

find the value of r so the line that passes through each pair of points has the given slope (5, 3), (r, -5), m=4

Answers

Answer:

r=3

Step-by-step explanation:

use slope formula : y2-y1 / x2-x1

-5-3 / r-5

the numerator is -8 which means the denominator has to be -2 in order to have the slope be 4

so r-5 = -2

3-5 = -2

First five terms to the sequence a(n+1) = 5a(n) and a(1)=2 for n[tex]\geq[/tex]1

Answers

The required first five terms of the sequence are 2, 10, 50, 250, and 1250.

What is an arithmetic sequence?

An arithmetic sequence is defined as an arrangement of numbers that is in a particular order.

The first five terms of the sequence, a(n), defined by the recurrence relation a(n+1) = 5a(n) and a(1) = 2, are as follows:

a(1) = 2

a(2) = 5a(1) = 5 × 2 = 10

a(3) = 5a(2) = 5 × 10 = 50

a(4) = 5a(3) = 5 × 50 = 250

a(5) = 5a(4) = 5 × 250 = 1250

Therefore, the first five representations of the sequence are 2, 10, 50, 250, and 1250.

Learn more about arithmetic sequence here:

brainly.com/question/21961097

#SPJ1

What is the answer to 156 x 13

Answers

Answer: 156 x 13 = 2,028

Answer:

2028

Step-by-step explanation:

156 x 13 = 2028

In a school containing 360 children, 198 are girls. What percent of all children are girls? What percent of the children are boys? The number of girls is what percent of the number of boys? The number of boys is what percent of the number of girls?
the number of girls is _____% of the number of boys.

Answers

Answer:

1st question :55%

2nd ":122.22%

3rd ":81.82%

find the area and circumference of a circle with a radius 5 m. use the value 3.14 for radius, and do not round your answers. Be sure to include the correct units in your answers.

Answers

Area and circumference of the circle are 78.5 m² and 31.4 m respectively.

What is a circle?

A circle is a shape consisting of all points in a plane that are at a given distance from a given point, the centre.

Given that, a circle have a radius 5 m

Area of a circle = π × radius²

Circumference = 2π×radius

Area = 3.14 × 5² = 3.14 × 25 = 78.5 m²

Circumference = 3,14 × 2 × 5 = 31.4 m

Hence, area and circumference of the circle are 78.5 m² and 31.4 m respectively.

Learn more about circle, click;

https://brainly.com/question/29142813

#SPJ1

I need to figure out how to do linear fuctions... If I could get help that would be great, thanks.

Answers

Answer:

linear function can be found by looking at a linear graph and determining the equation of the line and converting that equation into a function.Step-by-step explanation:

The steps to do this are: Find the y-intercept (this is equal to b in the formula) Find the slope of the line (this is equal to m in the formula)

3. Candy previously sold for $1.60 per pound is now offered for 48 cents in a 6 ounce
package. What is the ratio of former price to present price??

Answers

Answer: 5:3

Step-by-step explanation:

note: 16 ounces= one pound          
6 ounces = ?

∴6 ounces = pounds

48 cents = pounds

multiplying both sides by 

108 cents = 1 pound in the new price

= $1.08 in the new price 

ratio of old price to new price = 

therefore ratio of old to the new price = 5:3

Which of the following equations represent linear functions? select all that apply

Responses

3x+5y=1

y= -9/x2(2 is an exponent)

y=x2(2 is an exponent)-7

y=1/x
will give brainliest for whoever answers correctly and quickly

Answers

3x+5y=1
When you put this into slope intercept form you should get a linear function. For the second and third, it has exponents so it can’t be linear and the last one also isn’t linear

Which of the following points is shown in the graph below? Question 5 options:

Answers

The point shown on the graph is

(4, -5, 6)

How to find the points shown on the graph

An ordered triplet of lines (the axes) that are pair-wise perpendicular and pass through the same point (the origin) make up a Cartesian coordinate system for a three-dimensional space.

Each axis also has an orientation, and the length of all three axes is equal.

In ordered triplet, the order of the axis is (x, y, z)

z is vertical up positive and down negative

y is horizontal right is positive and left is negative

x is the axis pointing to us which is positive pointing away is negative

Using this information, to trace the point shows that the point marked by a dot is  (4, -5, 6).

Learn more about ordered triplet at:

https://brainly.com/question/29601205

#SPJ1

In 2-4, write yes or no to indicate whether the expressions are equivalent. Grade 6 math, please help

Answers

you have to combine like terms so -10x & 2x = -8x (same signs add & keep diff signs subtract, take the sign of the higher value then you’ll be exact) & -3 & -5 = -8 so it’s -8x -8 & then distribut the - 4 so (-4)(3x) = -12x & -4(-2) = 8. for 2. it’s no, -8x-8 & 12x+8 are no equivalent.

A trapezoid has interior angle measures of 95°, 97", 85° and X degrees. Find the measure of angle X in the trapezoid. Enter only the number of degrees in the answer
box.
The solution i:

Answers

As a result, you are turning the entire trapezium figure 90 degrees clockwise in order to change the trapezoid LMNQ into L′M′NQ′.

The trapezoid is what?

In American and Canadian English, a trapezoid is a quadrilateral with at least one set of parallel sides. In British and other versions of English, the word is a trapezium. A trapezoid is always a convex quadrilateral in Euclidean geometry. The parallel sides of the trapezoid are referred to as its bases.

Given: When (-7,-2) to L, L becomes L' (-2,7)

You will often obtain a rotation of 90 degrees clockwise or 270 degrees counterclockwise around the origin (0,0), as well as a reflection across the x-axis and across the line of symmetry of the image, if you have (x,y) and it becomes (y,-x).

The entire graphic is therefore rotated 90 degrees in a clockwise orientation.

To know more about trapezoid visit -

brainly.com/question/8643562

#SPJ1

Ethan has 3pounds of mixed nuts how many ounces of mixed nuts does Ethan have ?

Answers

Answer:

48 ounces of Mixed Nuts

Step-by-step explanation:

You need to convert pounds to ounces to find the answer to this problem.

1 pound is 16 ounces, so multiply 3 by 16 for your answer,

The area of a rectangular room is 750 square feet. The width of the room is 5 feet less than the length of the room. Which equations can be used to solve for y, the length of the room? Select three options. y(y + 5) = 750 y2 – 5y = 750 750 – y(y – 5) = 0 y(y – 5) + 750 = 0 (y + 25)(y – 30) = 0

Answers

Answer:

B, C, E

Step-by-step explanation:

Let y = length.

Then, y - 5 = width.

area = length × width

area = y(y - 5)

area = 750

y(y - 5) = 750

y² - 5y = 750

A: y(y + 5) = 750

Since y = length, width must be y - 5, not y + 5, so A does not work.

B: y² - 5y = 750

This is what we got above, so this equation works.

C: 750 - y(y - 5) = 0

750 = y(y - 5)

750 = y² - 5y

This is the same as B and works.

D: y(y - 5) + 750 = 0

y(y - 5) = -750

The area cannot be -750, so this equation does not work.

E: (y + 25)(y - 30) = 0

y = -25 or y = 30

This also works.

Answer: B, C, E

when a positive integer was multiplied by each of its digits, the product was 1995. Find the original number.

Answers

Answer:

  57

Step-by-step explanation:

You want a positive number that gives a product of 1995 when it is multiplied by each of its digits.

Number

The prime factors of 1995 are 3, 5, 7, 19. The product of 3 and 19 gives 57, so multiplying 57 by 5 and 7 will result in the product 1995.

The original number is 57.

<95141404393>

• Jason runs 8 miles in an hour and bikes 12 miles in an hour.
. This week, he runs a total of 3 hours and bikes a total of 6 hours.

Answers

If Jason runs 8 miles in an hour and bikes 12 miles in an hour, and he runs a total of 3 hours and bikes a total of 6 hours this week, then he runs a total of 83 = <<83=24>>24 miles this week.
He also bikes a total of 126 = <<126=72>>72 miles this week.
In total, Jason runs and bikes a total of 24+72 = <<24+72=96>>96 miles this week.

in a military camp 50 offices had a choice of beans, plantain and rice. of there, 21 chose beans, 24 plantain and 18 rice. Also 3 chose beans only, 9 plantain only, 2 rice only and 5 chose all three kinds of food

illustrate this on a venn diagram​

Answers

The Venn diagram to illustrate this information is given 24 children got plantain and 18 rice and 21 chose beans.Following relation are given below.

What is Venn diagram in math?

A  Venn diagram is a diagrammatic representation of two or more sets.The Venn diagram shows the relationship among sets using circles and the area they cover concerning each other.Venn diagrams are used to visually depict sets, relationships between sets, and operations on sets.

What are the symbols in Venn diagram?

∪ symbol shows Union of two sets. A complete Venn diagram represents the union of two sets. ∩ shows the Intersection of two sets.Intersection represents something that you want to compare and contrast. Where the two circles intersect we would write traits that the two things have in common.

Now

The number of children who took plantain and beans only are:

Let  beans = a

Rice = b

Plantain = P

So:  a + b = 24 - 9 - 5 = 10

Note that 24 children took plantain.

9 children took only Plantain.

5 took the 3 food items.

So,

b + c = 18 -2 - 5 = 11

a + c = 21 - 3 - 5 = 13

P∩B = a + 5

= 6 + 5 = 11

R ∩ B = C + 5

=7 + 5 = 12

None of the three items of food =  

50 - (3 + 2 + 9 + 6 + 4 + 7 + 5)

= 50 - 36

=14

To learn more about venn diagram visit;

https://brainly.com/question/29301560

#SPJ1

what is the slope of the table below? 3/8 15/12 9/10 0/7

Answers

The slope of the table shown in the image attached below is equal to: D. 1/3.

How to calculate the slope of the given table?

Mathematically, the slope of the given table can be calculated by using the following mathematical expression;

Slope, m = (Change in y-axis, Δy)/(Change in x-axis, Δx)

Slope, m = (y₂ - y₁)/(x₂ - x₁)

From the information provided in the table, we have the following data points:

Points on x-axis = (-2, 2).

Points on y-axis = (-4, -2).

Substituting the given points into the slope formula, we have;

Slope, m = (12 - 8)/(15 - 3)

Slope, m = 4/12

Slope, m = 1/3

Read more on slope here: brainly.com/question/1884491

#SPJ1

Bradenton Bakery is baking a cake for a customer's quinceañera. The cake mold is shaped like a cylinder with a diameter of 12 inches and height of 8 inches.

Which of the following shows a correct method to calculate the number of cubic units of cake batter needed to fill the mold? Approximate using pi equals 355 over 113.

V equals 355 over 113 times 12 squared times 8
V equals 355 over 113 times 6 squared times 8
V equals 355 over 113 times 8 squared times 6
V equals 355 over 113 times 8 squared times 12

Answers

Therefore , the solution of the given problem of volume comes out to be

V =355/113 * (5)² * 7  thus correct option is V equals 355 over 113 times 6 squared times 8.

Define volume.

Volume, which is expressed in cubic units, is a unit of measurement for the 3-dimensional space occupied by matter or encircled by a surface. The SI unit of volume = area * height is the cubic metre (m3), which is a derived unit. A "litre" (L) is the name given to the cubic decimeter (dm3).

Here,

The volume of cylinder = πr²h

Given : Diameter = 12 inches

radius = 12/2 = 6 inches

Height = 8 inches

Thus ,

To find the volume  we put the all the above values in the formula:

=> V = πr²h

=> V = 22/7 * 6² * 8

=> V =355/113 * (6)² * 8

Therefore , the solution of the given problem of volume comes out to be

V =355/113 * (5)² * 7  thus correct option is V equals 355 over 113 times 6 squared times 8.

To know more about volume , visit

brainly.com/question/13338592

#SPJ1

Answer:

V equals 355 over 113 times 6 squared times 8.

Step-by-step explanation:

what is the percent of change for your grade if originally you got 5 questions right and you checked your work and ended up with 15 questions right

Answers

Answer:

To calculate the percent of change for your grade, you will need to know your original grade and your revised grade. If you originally got 5 questions right and you checked your work and ended up with 15 questions right, you can calculate the percent of change as follows:

Subtract your original score from your revised score to find the difference: 15 - 5 = 10

Divide the difference by your original score and multiply by 100 to express the change as a percentage: (10 / 5) x 100 = 200%

This means that your grade increased by 200%.

Step-by-step explanation:

Is this relation a function? Justify your answer.
11
10
9
8
7
654321
1 2 3 4 5 6 7 8 9 10 11
OA. Yes, because every x-value corresponds with a single y-value.
OB. Yes, because the number of x-values is the same as the number of
y-values.
OC. No, because two points with the same y-value have different x-
values.
OD. Yes, because every x- and y-value is positive.

Answers

Due to the fact that element 1 relates to two distinct images, namely 3 and 5. The relationship hence is not a function.

What is meant by function?A function is a relationship between a collection of inputs and one output per input. A function is, to put it simply, an association between inputs where each input is linked to exactly one output.For each function, a domain, codomain, or range exists. A function is often represented by the expression f(x), where x represents the input.A "chunk" of code that may be utilized repeatedly rather than having to be typed down repeatedly is called a function.Programmers can break a huge problem down into smaller components, each of which can perform a specific purpose, by using functions.

Therefore,

(i) {(2,1),(5,1),(8,1),(11,1),(14,1),(17,1)

Every input has a single output, proving that it is a function.

The elements in the domain of the provided relation are therefore 2,5,8,11,14, and 17.

Here, domain is equal to two and range is one.

(ii) (2,1),(4,2),(6,3),(8,4),(10,5)(12,6),(14,7)

Every input has a single output, proving that it is a function.

Therefore, 2, 4, 6, 8, 10, 12, and 14 make up the domain of the provided relation.

Here, range is 1,2,3,4,5,6,7 and domain is 2,4,6,8,10,12,14.

(iii) (1,3),(1,5),(2,5)

Due to the fact that element 1 relates to two distinct images, namely 3 and 5. The relationship hence is not a function.

The complete question is:

Which of the following relations are functions? Give reasons.

If it is a function determine its domain and range

(i) (2,1),(5,1),(8,1),(11,1),(14,1),(17,1)

(ii) {(2,1),(4,2),(6,3),(8,4),(10,5),(12,6),(14,7)

(iii) {(1,3),(1,5),(2,5)

To learn more about function, refer to:

https://brainly.com/question/25638609

#SPJ1

find the equation of a line parallel to y=-5x+3 that pases through the point -3,-4

Answers

Answer:

  y = -5x -19

Step-by-step explanation:

You want the equation of the line parallel to y=-5x+3 through point (-3, -4).

Parallel lines

The equations of parallel lines differ only in their constant. We can find the new constant by using the values at the given point:

  y = -5x +b

  -4 = -5(-3) +b

  b = -4 -15 = -19 . . . . . . subtract 15

The equation is ...

  y = -5x -19

Other Questions
Why is the longest side of a triangle always opposite the largest angle? What was the first New Deal program? What is the correct term for variation in characteristics within populations of the same species? 30kg Michaela is swinging on a swing. Her total mechanical energy is 600 J. At what height will she be when she has a velocity of 2 m/s?Please show all work!40 points!! For what value of k is 4x 2 8xy k * y 2 9 The equation of a pair of straight lines? find the value of 15/4 divided 5/8.show you reasong Why is firewood considered a limited resource ? A. People are not practicing sustainable wood harvesting B. Wood is used in place of money to trade for food C. Fuelwood allows people to purify their water by boiling it D. Fuelwood allows people to cook their food .An increase in water-borne diseases could possibly be alleviated by. A. Adequate sewage treatment facilities for growing populations. B. Very rapid growth of large cities. C. Sufficient fuelwood D. Both A and D.Which of the following would not be a characteristic of a country on the least developed countries list ? A. Extremely poor nutrition, health, and educationB. Extremely high poverty levels- making about $2.00 per day . C. Distinct developmental progressD. Aided by the UN finically Most countries are tending towards replacement level fertility rates by 2050. What does this mean for world population growth in the future past 2050? A. Population growth will become population loss B. Population growth will eventually stopC. The population will continue to grow D. None of the above . I know for the last question the answer isnt A . I know question three isnt answer B. I know question 1 isnt answer C. Of the 50 members of a staff, 40 percent worked the day shift and the remaining 60 percent worked the night shift in a given week. Of the staff members, 80 percent prefer working the day shift and the remaining 20 percent prefer working the night shift. What is the minimum number of staff members who failed to receive his or her preference of shift that week A harh drought killed ome of the farm family corn and everal head of it cattle. Where on the production poibilitie curve could you poition a point to reflect thee circumtance? How is paragraph 1 significant to the authors claims?A It sets the tone for the rest of the text by explaining the origins oflacemaking.B It emphasizes the lacemakers ability to create a wonderful product to sell topeople.C It describes the beauty of the art designs used in lacemaking.D It expresses the level of difficulty involved in lacemaking.Responses The conversation between Fred and Sarah is an example of impersonal communication. Please select the best answer from the choices provided T/F Solution for 4x+3y=11 over 2x+y=7 write a story.about an animal. that can play music. 4. Nicole uses 2.5 meters of ribbon to decoratedoor wreaths. There are 20 meters of ribbon on aspool. Write an equation that could be used todetermine the number of wreaths that Nicolecould decorate using one spool of ribbon. Solve.Equation: In an earlier assignment you modeled an inheritance hierarchy for dog and cat pets. You can reuse the code for that hierarchy in this assignment. Write a program that prompts the user to enter data (name, weight, age) for several Dog and Cat objects and stores the objects in an array list. The program should display the attributes for each object in the list, and then calculate and display the average age of all pets in the list using a method as indicated below:public static double calculateAverage( ArrayList list ){... provide missing code ...}previous codechihuahuapublic class Chihuahua extends Dog{public void bark(){System.out.println("Bow wow");}}dogpublic class Dog{private String name;private double weight;private int age;public String getname(String n){name = n;return n;}public double getweight(double w){weight = w;return w;}public int getage(int a){age = a;return a;}public void bark(){}}import java.util.Scanner;public class DogCatTest{public static void main( String [] args){Scanner scan = new Scanner(System.in);System.out.println("Enter name");String name = scan.nextLine();System.out.println("Enter weight");double weight = scan.nextDouble();System.out.println("Enter age");int age = scan.nextInt();Dog [] dogCollection = { new Chihuahua(), new GoldenRetriever()};for( int i = 0; i < dogCollection.length; i++ )dogCollection[ i ].getname(name);System.out.println(name);for( int i = 0; i < dogCollection.length; i++ )dogCollection[ i ].getweight(weight);System.out.println(weight);for( int i = 0; i < dogCollection.length; i++ )dogCollection[ i ].getage(age);System.out.println(age);for( int i = 0; i < dogCollection.length; i++ )dogCollection[ i ].bark();System.out.println("Enter name");String cname = scan.nextLine();System.out.println("Enter weight");double cweight = scan.nextDouble();System.out.println("Enter age");int cage = scan.nextInt();Cat1 [] catCollection = { new SiameseCat(), new SiberianCat() };for( int i = 0; i < catCollection.length; i++ )catCollection[ i ].getname(cname);System.out.println(cname);for( int i = 0; i < catCollection.length; i++ )catCollection[ i ].getweight(cweight);System.out.println(cweight);for( int i = 0; i < catCollection.length; i++ )catCollection[ i ].getage(cage);System.out.println(cage);for( int i = 0; i < catCollection.length; i++ )catCollection[ i ].meow();}}public class GoldenRetriever extends Dog{public void bark(){System.out.println("Bow wow");}}public class SiameseCat extends Cat1{public void meow(){System.out.println("Meow");}}public class SiberianCat extends Cat1{public void meow(){System.out.println("Meow");}}public class Cat1{private String name;private double weight;private int age;public String getname(String n){name = n;return n;}public double getweight(double w){weight = w;return w;}public int getage(int a){age = a;return a;}public void meow(){}} 7X -6Y=-3 what is the slope of the parallel and perpendicular line What is the mole of o2? What are the 4 purposes of advertising? Change this radical to an algebraic expression with fractional exponents.3a 2 Dylan needs 2.5 liters of water for an experiment. He has 1.125 liters.How much more water does Dylan need?Show your work.Dylan needs how manyliters of water.