the pearson’s linear correlation coefficient measures the association between two continuous random variables. if its value is near ±1, the association is quasi perfectly linear.

Answers

Answer 1

The Pearson's linear correlation coefficient, also known as the Pearson's r, measures the strength and direction of association between two continuous random variables. It ranges from -1 to 1.

A value near ±1 indicates a strong linear association, with positive values signifying a direct relationship and negative values an inverse relationship.

If the value is close to ±1, the association is indeed quasi-perfectly linear. However, it's important to note that correlation doesn't imply causation.

Learn more about pearson correlation at

https://brainly.com/question/15353989

#SPJ11


Related Questions

Which line plot correctly shows the data?

Answers

The line plot shown C in the figure is correct.

Given that the recorded lengths of ribbon pieces which is used in project is [tex]11\frac{1}{4},11\frac{1}{4},10\frac{3}{4},10\frac{1}{2},10\frac{7}{8},10\frac{5}{8},9\frac{7}{8},11\frac{1}{4}[/tex].

Frequency refers to the number of times an event or  value occurs. A frequency table is a table that lists items and shows how many times those items occurred.

A line plot displays the data using a no. line.

Firstly, we will fimd the frequency of each value

Values                               Frequency

9 (7/8)                                        1

10(4/8)=10(1/2)                           1

10(5/8)                                       1

10(6/8)=10(3/4)                          1

10(7/8)                                       1

11(2/8)=11(1/4)                             3

Option A is incorrect because 11(2/8) has no data values in the line plot (i.e. frequency = 0)

Option B is incorrect because 11(2/8) has no data values in the line plot (i.e. frequency = 0)

Option C is correct because the frequency distribution of the data is represented correctly in the line plot.

Option D is incorrect because 11(2/8) has 2 data values in the line plot (i.e., frequency = 2)

Hence, the line plot which correct shows the data is third line plot.

Learn more about line plot from here brainly.com/question/8989301

#SPJ1

ind the hypotenuse of the following triangle. [2]


This is a RIGHT ANGLE triangle!

Answers

c2 =a2 +b2

that's the rule

for example

c2=5^2+5^2

c2=25+25

c2=50 square root is

c=7.07^2

HELP HELP HELP HELP
HELP HELP HELP HELP

Answers

Answer:

Vertex - (2, -1)

Axis of Symmetry - x = 2

X intercept - (3,0) (1, 0)

Y intercept (0, 3)

Domain - (negative infinity, positive infinity)

Range - [-1, infinity)

Step-by-step explanation:

I graphed with desmos and found it.

help!>> Which is the best first step in solving the
absolute value inequality
-3 5x+6+1 >6?

Answers

The answer to this is 16 because I did the math and that’s the answer

Answer:

see explanation

Step-by-step explanation:

- 3 | 5x + 6 | + 1 ≥ 6

First step : subtract 1 from both sides

- 3 | 5x + 6 | ≥ 5

Here is a list of numbers: 2 , 8 , 1 , 7 , 4 , 10 , 1 , 15 , 20 State the median.

Answers

Answer:

7

Step-by-step explanation:

1, 1, 2, 4, 7, 8, 10, 15, 20

median = 7

THE FIRST ONE TO ANSWER GETS BRAINLIEST OR FIVE STARS!! The earnings of part-time employees at a local computer repair store can be modeled by the equation y = 22x + 125, where x represents the number of hours worked and y represents the total earnings. Jasmine works at a competing store where she earns the same hourly rate. After working for 15 hours, she earned $555. Write an equation to represent Jasmine’s total earnings.

(picture just if I made a typo)

Answers

Answer:

In total she got $555 so we have to divide that to see how much she got per hour.

Step-by-step explanation:

y/x=?

$555/15= $37

Now how much money multiplied by how many hours

$37 X 15 = $555

I hope this helps, if you need any more information just comment!

Have an Amazing Day!!!

The sunshade on one set of equipment has a square base of 120 cm and a height of 50 cm. The
sunshades are open-bottomed square based pyramids. This means that the base is not included.
a. Determine the total surface area, in m², of the sunshade.

Answers

The total surface area, in m², of the sunshade is 0.4344 m²

How to calculate surface area of a squared pyramid ?

A pyramid can have a squared base, rectangular base or other polygons. The formula we can to find the total surface area of a squared pyramid is

Surface Area = P x l/2

Where

P = base parameterl = slant height

Given that a sunshade on one set of equipment has a square base of 120 cm and a height of 50 cm. That means that the length L of the base will be  120 cm and half of it will be 60 cm

To find the slant height l, we will use Pythagoras theorem.

[tex]l^{2}[/tex] = 60² + 50²

[tex]l^{2}[/tex] = 3600 + 2500

[tex]l^{2}[/tex] = 6100

l = √6100

l = 78.1 cm

convert it to meter

l = 78.1/100

l = 0.781 m

The perimeter P of the base = 4 x 120/100 = 4.80 m

The Surface Area = P x l/2

Substitute all the necessary parameters into the formula

Surface Area = 4.80 x 0.781/2  

Surface Area = 1.8744 m²

If the sunshades are open-bottomed square based pyramids, this means that the base is not included. That is, the area of the base should be taken away from the answer above.

Area of the base = 120/100 x 120/100 = 1.44 m²

The total surface area, in m², of the sunshade will 1.8744 - 1.44

The total surface = 0.4344 m²

Therefore, the total surface area, in m², of the sunshade is 0.4344 m²

Learn more about Pyramid here: https://brainly.com/question/218706

#SPJ1

Find the height of the basketball hoop to the nearest foot. a. 7 ft b. 10 ft c. 12 ft d. 15 f

Answers

The height of the basketball hoop to the nearest foot will be 12ft .

There are two ways to continue. The first method is to use trigonometric ratios.

You can use the tangent ratio because you have specified one leg and are trying to solve it with the other leg.

x equals the length of the other leg. .. Plug in known values.

Another way to find out is to monitor the angle. If the two angles are 45 degrees and 90 degrees, you can see that the third angle is 45 degrees. This makes it an isosceles triangle. That is, the other leg is 7 feet long.

2) Determine the height of the tire

Add 7 feet and 5 feet (human height):

7 + 5 = 12 feet

Learn more about Height Calculation  here: https://brainly.com/question/6613758

#SPJ4

Write an equation of the line in slope-intercept form that is parallel to the line y= -4 + 2 and passes through (2,4)

Answers

Answer:

Step-by-step explanation:

If the lines are parallel, it means that the slopes are the same.  To write an equation in the slope intercept form, we need the slope and the y-intercept.  We are given the slope.  We need to find the y-intercept.  We can use the slope and the point to help us.  The point is written in the form (x,y).  In this case the point is (2,4) so we will use 2 for x and 4 for y.

y = mx + b  Plug in what we know

4 = -4(2) + b  b is what we are looking for.  It is the y-intercept

4 = -8 + b  Now add 8 to both sides

12 = b

Now we can write the equation:

y = -4x +12

A political campaign wants to estimate the number of adult residents who voted in the last city election. Answer the following. (a) Which of the following surveys probably would best represent the entire adult population of the city? 25 homeowners are randomly selected; 14 voted in the last election. 25 adult residents are randomly selected from the city; 10 voted in the last election. 25 senior residents are randomly selected; 11 voted in the last election. (b) There are 20,600 adults who live in the city. Using your answer from part (a), estimate the number of adults who voted in the last city election.

Answers

Using sampling concepts, it is found that:

a) The best method is: 25 adult residents are randomly selected from the city;

b) The estimate is that 11,536 adults voted in the election.

What is sampling?

It is a common statistics practice, when we want to study something from a population, we find a sample of this population, which is a group containing elements of a population. A sample has to be representative of the population, that is, it has to involve all segments of the population.

In this problem, the sample will be representative if all adults, no matter if senior or not, homeowners or not are represented, hence the best method is:

25 adult residents are randomly selected from the city;

The estimate of the number of adults that voted is:

14/25 x 20,600 = 11,536.

More can be learned about sampling concepts at https://brainly.com/question/25122507

#SPJ1

An example of a qualitative variable is Multiple Choice number of children in a family. weight of a person. color of ink in a pen. miles between oil changes.

Answers

Due to its subject-specific classification, ink color in pens is a qualitative variable.

What is a Qualitative variable?The factors that cannot be measured with a numerical value are known as qualitative variables. In order to define anything, these quantities are not quantified or tallied; instead, data is categorized.There is no numerical way to express it.Quantitative variableThe other choices are erroneous because the variables that are numerically specified in the other choices—an individual's weight, the number of children, and the number of miles—are these.Therefore, all of those are quantitative variables.

Consequently, option (C) is the appropriate choice.

Learn more about quantitative variables here:

https://brainly.com/question/14583272

#SPJ4

What part of this question is an hour

Answers

Answer is 291 minutes of an hour
291 of 60 minutes
97/20 of an hour as a fraction

Step by step
11:24 to 12:00 is 36 minutes
12:00 to 4:15 is 255 minutes
Total minutes passed is 291 minutes
291 minutes over 1 hour
291/60 minutes
Simplify to 97/20 as a fraction
4.85 as a fraction

I need help finding m

Answers

Answer:

i need this too hahahaha

Peter sells ice cream for a living. On Monday, his revenue was 150 dollars. On Tuesday, his revenue was 100 dollars. Finally, on Wednesday, his revenue was 50 dollars. How much is Peter's revenue so far?

Answers

Answer:

300 dollars

Step-by-step explanation:

Note that:

{Peter's revenue on Monday: 150 dollars

Peter's revenue on Tuesday: 100 dollars

Peter's revenue on Wednesday: 50 dollars}

---------------------------------------------------------------

In this problem, we need to find how much is Peter's revenue so far (total).

We need to use addition to determine how much Peter's revenue is in total.

So, add 150, 100, and 50.

We get 150 + 100 + 50 = 300

Finally, Peter's revenue in total is 300 dollars.

Answer:

$300

Step-by-step explanation:

add 150+100+50

=300

Someone help pls, its urgent! ASAP!!! (Geometry)
“Complete the proofs”

Answers

Question 11

1) [tex]\overline{BA} \cong \overline{FA}[/tex], [tex]\angle 1 \cong \angle 2[/tex] (given)

2) [tex]\angle A \cong \angle A[/tex] (reflexive property)

3) [tex]\triangle AEB \cong \triangle ACF[/tex] (ASA)

4) [tex]\overline{AC} \cong \overline{AE}[/tex] (CPCTC)

Question 12

1) Isosceles [tex]\triangle ACD[/tex] with [tex]\overline{AC} \cong \overline{AD}[/tex], [tex]\overline{BC} \cong \overline{ED}[/tex] (given)

2) [tex]\angle ACD \cong \angle ADC[/tex] (angles opposite congruent sides in a triangle are congruent)

3) [tex]\angle ACB[/tex] and [tex]\angle ACD[/tex] are supplementary. [tex]\angle ADC[/tex] and [tex]\angle ADE[/tex] are supplementary (angles that form a linear pair are supplementary)

4) [tex]\angle ACB \cong \angle ADE[/tex] (supplements of congruent angles are congruent)

5) [tex]\triangle ABC \cong \triangle AED[/tex] (SAS)

6) [tex]\overline{AB} \cong \overline{AE}[/tex] (CPCTC)

7) [tex]\triangle ABE[/tex] is an isosceles triangle (a triangle with two congruent sides is isosceles)

Note: I changed the names of the segments in Question 11 because of the word filter.

Let u - 4x? - 1. Find du. (4-1) du - Indicate how the limits of integration should be adjusted in order to perform the integration with respect to u. (Enter your answer using interval notation.) [0, 1] - Evaluate the definite integral. 01 Need Help? Read to a Tutor Consider the following. Let u = x + 1. Find du. du- Indicate how the limits of integration should be adjusted in order to perform the integration with respect to L. (Enter your answer using interval notation, [0, 2] - Evaluate the definite integral.

Answers

The value of du becomes 4 by integration.

According to the statement

we have given a two statement which are u - 4x and  u = x + 1.

And we have to find the value of du by the use of integration.

An Integral assigns numbers to functions in a way that describes the data.

So,

From u  - 4x

here du becomes by derivative

du - 4dx/du

du = 4dx/du.  -(1)

And in u = x + 1.

here du becomes

du = dx/du  -(2)

by comparing both terms from equation (1) and (2) we get the value of du

du = 4.

the value of du is 4.

So, The value of du becomes 4 by integration.

Learn more about INTEGRATION here https://brainly.com/question/19053586

#SPJ4

If the coordinates of two points are A (-3,5) and B (-9, -6), then find the value of (abscissa of A) + (ordinate of B)​

Answers

Answer:

abscissa of A = -3

ordinate of B = -6

A+B = -3+(-6)= -3-6=

-9

(Lesson 1.3) Use properties to find the sum or product. (3,5,7,9,11 only)

Answers

The values when the given numbers are multiplied will be:

230

78

3

91

1800

How to compute the values?

3. 5 × 23 × 2

It should be noted that the given information simply means that we should multiply 5 by 23 by 2. This will be:

= 5 × 23 × 2

= 230

5. 34 + 0 + 18 + 26

This information simply means that we should add thirty four, eighteen, and twenty six together. This will be:

34 + 0 + 18 + 26 = 78

7. (3 × 10 × 8) = ....... × (10 × 8)

(3 × 10 × 8) = 3 × (10 × 8)

9. 0 + ...... = 91

It simply means the number that will be added to zero that will give ninety one. This will be 91.

11. The total income for the theater will be:

= (20 × 18) × 5

= 1800

Therefore, the correct values based on the computation will be 730, 78, 3, 91, and 1800.

Learn more about multiplication on:

brainly.com/question/10873737

#SPJ1

Please list how long it takes for each person to pack a shelf alone

Jay and Kay can pack the shelves in one aisle of the supermarket in 30 minutes.

Kay and Elle take 35 minutes to do the same job.

When Jay and Elle work together, the job takes 42 minutes.

How long would each person take working individually?

Answers

It takes Jay, Elle and Kay to work individually for 70 minutes, 105 minutes and 52.5 minutes respectively

What is Rate and Ratio ?

A ratio can sometimes be regarded as fraction. While rate has something to do with time.

Given that Jay and Kay can pack the shelves in one aisle of the supermarket in 30 minutes. Kay and Elle take 35 minutes to do the same job. When Jay and Elle work together, the job takes 42 minutes.

Let

J = Jay K = KayE = Elle

The interpretation of the question go thus;

1/J + 1/K = 1/30 ........ (1)

1/K + 1/E = 1/35 .........(2)

1/J + 1/E = 1/42 .........(3)

Make 1/J and 1/E the subject of formula in equation 1 and 2 respectively and substitute them in equation 3

1/J = 1/30 - 1/K  ........ (4)

1/E = 1/35 - 1/K  .........(5)

1/30 - 1/K + 1/35 - 1/K = 1/42

Collect the like terms

- 1/K - 1/K = 1/42 - 1/30 - 1/35

-2/K = (35 - 49 - 42)/1470

-2/K = -56/1470

1/K = 28/1470

Reciprocate both sides

K = 1470/28

K = 52.5 minutes.

Substitute K in both equation 4 and 5

1/J = 1/30 - 28/1470

1/J = (49 - 28)/1470

1/J = 21/1470

Reciprocate both sides

J = 1470/21

J = 70 minutes

1/E = 1/35 - 28/1470

1/E = (42 - 28)/1470

1/E = 14/1470

Reciprocate both sides

E = 1470/14

E = 105 minutes

Therefore, it takes Jay, Elle and Kay to work individually for 70 minutes, 105 minutes and 52.5 minutes respectively

Learn more about Rate here: https://brainly.com/question/8728504

#SPJ1

The area of the trapezoid shown is one 20 cm². Find the sum of the links of the two parallel sides.

Answers

The  sum of the links of the two parallel sides is 5cm

Area of a  trapezoid

The formula for calculating the area of a trapezoid is expressed as:

A = 0.5(a+b)h

where

h is the height of the trapezoid

a+b is the sum of the sides

Substitute

20 = 0.5(a+b)8

40 = 8(a+b)

a+b = 40/8

a+b = 5cm

Hence the  sum of the links of the two parallel sides is 5cm

Learn more on area of trapezoid here: https://brainly.com/question/1410008

#SPJ1


What is the slope of a line passing through (-4,-5)
and (-2,-9)?

Answers

Gradient
= (y2-y1)/(x2-x1)
= (-9-(-5))(-2-(-4))
= (-4)(2)
= -8

Answer:

slope = - 2

Step-by-step explanation:

calculate the slope m using the slope formula

m = [tex]\frac{y_{2}-y_{1} }{x_{2}-x_{1} }[/tex]

with (x₁, y₁ ) = (- 4, - 5 ) and (x₂, y₂ ) = (- 2, - 9 )

m = [tex]\frac{-9-(-5)}{-2-(-4)}[/tex] = [tex]\frac{-9+5}{-2+4}[/tex] = [tex]\frac{-4}{2}[/tex] = - 2

Here are the scores of 14 students on a geography test. 58, 60, 65, 67, 68, 72, 79, 79, 80, 81, 82, 86, 86, 87 Notice that the scores are ordered from least to greatest. Give the five-number summary and the interquartile range for the data set.
Five-number summary
Minimum:

Lower quartile:
Median:
Upper quartile:
Maximum:
Interquartile range:

Answers

The five-number summary are as follows:

Minimum = 58Lower quartile(Q₁) = 67Median = 79Upper quartile(Q₃) = 82Maximum = 87Interquartile range = 15

How to solve for five-number summary?

The five-number summary is a set descriptive statistics which consist of the minimum, maximum, median, upper quartile, and lower quartile of a data distribution.

Therefore,

Given:

58, 60, 65, 67, 68, 72, 79, 79, 80, 81, 82, 86, 86, 87

Therefore,

Minimum = 58

Lower quartile(Q₁) = 67

Median = 79 + 79 / 2 = 79

Upper quartile(Q₃) = 82

Maximum = 87

Interquartile range = Q₃ - Q₁ = 82 - 67 = 15

learn more on  five-number summary here: https://brainly.com/question/4656888

#SPJ1

Find each difference and show work please !!

Answers

Answer:

X-19

Step-by-step explanation:

First you need to distribute the three into the numbers in the parenthesis,

(3 * x) + (3  * -5) - (2x + 4)

That then turns into,

3x - 15 - (2x + 4)

but we aren't done distributing yet, because the second set of parenthesis has a negative sign in front of it we also have to distribute that. (this is because the negative sign is really just -1)

3x - 15 + (-1 * 2x) + (-1 * 4)

that turns into,

3x - 15 - 2x -4

from here all we have to do is add like terms,

(3x - 2x) + (-15 + -4)

and that leaves us with: 1x -19 or x-19

Hope that helped :))  

PLS HELP ME PLEASE
To measure the distance across a lake, a surveyor has taken the measurements shown in the diagram below. Determine the distance across the lake.

Answers

Using the law of cosines, it is found that the distance across the lake is of 978.5 feet.

What is the law of cosines?

The law of cosines states that we can find the angle C of a triangle as follows:

[tex]c^2 = a^2 + b^2 - 2ab\cos{C}[/tex]

in which:

c is the length of the side opposite to angle C.a and b are the lengths of the other sides.

In this problem, the parameters are:

a = 800, b = 900, C = 70º.

Hence the distance across the lake is c, found as follows:

[tex]c^2 = a^2 + b^2 - 2ab\cos{C}[/tex]

c² = 800² + 900² - 2(800)(900)cos(70º)

c² = 957491

[tex]c = \sqrt{957491}[/tex]

c = 978.5.

The distance across the lake is of 978.5 feet.

More can be learned about the law of cosines at https://brainly.com/question/2491835

#SPJ1

8. Find (f+g)(x) if f(x) = 4x² - 5x and g(x) = 3x² + 6x - 4.​

Answers

[tex] {\qquad\qquad\huge\underline{{\sf Answer}}} [/tex]

Here we go ~

[tex]\qquad \sf  \dashrightarrow \: (f + g)(x)[/tex]

[tex]\qquad \sf  \dashrightarrow \: f(x) + g(x)[/tex]

[tex]\qquad \sf  \dashrightarrow \: (4 {x}^{2} - 5x) + (3 {x}^{2} + 6x - 4)[/tex]

[tex]\qquad \sf  \dashrightarrow \: 7 {x}^{2} + x - 4[/tex]

which facts are true for the graph of the function below check all that apply F(x)=log6x

Answers

Based on the graph of the function (F(x) = log6x), the following facts are true:

It is increasing. The x-intercept is (1, 0).

What is a graph?

A graph is a type of chart that is used to graphically represent data on both the horizontal and vertical lines of a Cartesian coordinate i.e x-axis and y-axis.

By critically observing the graph of the function (F(x) = log6x) attached in the image below, we can infer and logically deduce that its domain and range include all real numbers that are greater than 0 (x > 0).

This ultimately implies that, the following facts are true:

It is increasing. The x-intercept is (1, 0).

Read more on graphs here: brainly.com/question/25875680

#SPJ1

Complete Question:

Which facts are true for the graph of the function below? Check all that apply. F(x) = log6 x

A. It is increasing.

B. The range is y > 0.

C. The x-intercept is (1, 0).

D. It is decreasing.

E. The y-intercept is (0, 6).

F. The domain is x > 6.

8 x -1/4 x -7 cara ngerjain nya bagaimana?

Answers

Ans is + 14
8*(-1/4)*-7
=2*(-1)*(-7)
=14

Select all of the following problem situations that involve permutations. How many ways can you arrange 4 of the letters of the word SOLVE if no letter can be used more than once

Answers

There are 24 ways in which we can arrange 4 letters of the word "SOLVE" if no letter can be used more than once.

Given a word of 4 letters of the word "SOLVE".

We are required to find the number of ways the four letters of the word SOLVE if no letter can be used more than once.

Permutation is an arrangement of objects in a definite order of things.

Factorial of a number is the product of it and its lesser numbers upto 1.

Number of letters=4

Number of ways=4!

=4*3*2*1

=24 ways

Hence there are 24 ways in which we can arrange 4 letters of the word "SOLVE" if no letter can be used more than once.

Learn more about factorial at https://brainly.com/question/25997932

#SPJ4

using a calculator, or otherwise,determine the value of(12.3)² - (0.246÷3) and write the answer
(i)exactly
(ii)correct to two significant figures ​

Answers

[tex]\huge\text{Hey there!}[/tex]

[tex]\huge\textbf{Assuming the equation is:}[/tex]

[tex]\mathsf{(12.3)^2 - (0.246 \div 3)}[/tex]

[tex]\huge\textbf{If so, let's start simplifying it:}[/tex]

[tex]\mathsf{(12.3)^2 - (0.246 \div 3)}[/tex]

[tex]\mathsf{= (12.3\times 12.3) - (0.246 \div 3)}[/tex]

[tex]\mathsf{= (151.29) - (0.246 \div 3)}[/tex]

[tex]\mathsf{= 151.29 - 0.246 \div3}[/tex]

[tex]\mathsf{= 151.29 - 0.082}[/tex]

[tex]\mathsf{= 151.208}[/tex]

[tex]\huge\textbf{Therefore, your answer should be:}[/tex]

[tex]\large\boxed{\mathsf{Exactly \rightarrow} \frak{\ 151.208\ } \& \textsf{ Corrected to two significant figures}\rightarrow \frak{150 \ or \ 151}}\large\checkmark[/tex]

[tex]\huge\text{Good luck on your assignment \& enjoy your day!}[/tex]

~[tex]\frak{Amphitrite1040:)}[/tex]

What is the measure of Zz?
140°
80°
Z

Answers

Answer:

60

Step-by-step explanation:

140 = 80 + z

z = 60

Answer:

60°

Step-by-step explanation:

The whole angle is 140° and one side is 80°. Now, you just have to subtract 140 and 80 to get 60. I hope this helps!

Other Questions
reentrant code is easier to share when paging is used, because generally if a firm becomes less risky, its share price will An SRS of 16 items is taken from Population 1 and yields an average = 253 and standard deviation s1 = 32. An SRS of 20 items is taken (independently of the first sample) from Population 2 and yields an average = 248 and a standard deviation s2 = 36. Assuming the two populations have the same variance 2 and the pooled variance estimator of 2 is used, the standard error of is: use c++ please and do not get some wrong code for meIntroductionIn this lab you will practice using basic input/output, structs, and arrays of structs. Be sure to read this lab thoroughly, especiallythe sections of Collaboration and the Hand-in Procedure.CollaborationCollaboration amongst students is allowed to the extent outlined in the syllabus. That being the case, the goal of theseassignments is not to share code, but to learn the tools you need to succeed as a computer scientist. Students are expected towrite their own code free of plagiarism from any other student past or current. All assignments will be cross referenced acrossall sections of CS135 using the Measure Of Software Similarity (Moss) to automatically determine the similarity of programs.Refer to the syllabus for further details and consequences of breaking this policy.LabTo start your lab you will need a struct to read data into. The struct definition should be placed above main() and belowusing namespace std. The struct should be called PurchaseType and contain the following fields:1. string customerID2. string productName3. double price4. int qtyPurchased5. double taxRateWrite a complete program that:1. Uses a user defined function:void openFile(ifstream& iFile, string prompt)Which gets the name of a file from the user and opens it into iFile by:a. Prompting the user for a filename using prompt and reading the filename into a string.b. Opening the file name obtained in (1a) into iFile, and verifying that it opened. If the file does not open theprogram should output an error message and continue from (1a) until a valid file name is entered. See theexample output for error formatting.i. The file contains strings, integers, and doubles with 5 values per line with 10 lines of data in the file.Each line of data represents a different item purchased by a customer.2. Creates an array of instances of the PurchaseType struct to hold the data from the file obtained in (1).3. Uses a user defined function:void readFile(ifstream& iFile, PurchaseType purchases[])Which reads the data from iFile into purchases by:a. iFile contains rows of data which correspond to the elements of the PurchaseType struct. Iterate throughiFile inserting the rows of data, using str.find() str.substr(), into purchases until eof is hit.(More steps on next page)4. Uses a user defined function:void printPurchaseData(PurchaseType purchases[], int size)Which prints the data contained in purchases by:a. Using iomanip to nicely output all the data in a tabular format. You will need to calculate the total price foreach product purchased by multiplying the price of each product by the quantity purchased, and thenmultiplying by the (tax rate + 1). See the example output for formatting.b. Keeping track of each total found and outputting the average total at the end of the table.c. Keeping track of the count of unique customers and outputting the total unique customers at the end of thetable.main() should only contain variable declarations and function calls (to your user-defined functions). All data must be readinto an array of PurchaseType structs first, then the required output. You must write all of the functions in this lab, failing todo so will result in you receiving a 0 for this lab. Failure to use an array of structs will also result in a 0 for this lab. Seethe example output for examples and formatting.Prototypes for your user defined functions are:1. void openFile(ifstream&, string);2. void readFile(ifstream&, PurchaseType[]);3. void printPurchaseData(PurchaseType[], int);Example OutputAn example of an interaction with your program is shown below, your output should match these examples exactly. (The wordsprinted in blue are from the computer, based on your commands, the words in red are user input. Note: these colors are simplyhere to distinguish components and not needed in your program.):Alexs-iMac:lab11b alex$ g++ -Wall -pedantic -Werror main.cppAlexs-iMac:lab11b alex$ ./a.outEnter file name**errorError: Invalid FileEnter file name**purchases1.csv+-------------+--------------+-------+----------+----------+-------+| Customer ID | Product Name | Price | Quantity | Tax Rate | Total |+-------------+--------------+-------+----------+----------+-------+| A134CX2 | shirt | 10.00 | 1 | 8.25 | 10.82 || A134CX2 | pants | 15.95 | 2 | 8.25 | 34.53 || A134CX2 | jacket | 24.49 | 1 | 8.25 | 26.51 || 4J37I2I | blouse | 19.99 | 1 | 8.25 | 21.64 || 4J37I2I | pants | 14.98 | 1 | 8.25 | 16.22 || 4J37I2I | mittens | 9.99 | 3 | 8.25 | 32.44 || 4J37I2I | socks | 10.98 | 3 | 8.25 | 35.66 || B834621 | gloves | 9.99 | 2 | 7.15 | 21.41 || B834621 | cap | 24.99 | 3 | 7.15 | 80.33 || 27G8ZZY | earrings | 49.99 | 1 | 8.25 | 54.11 |+-------------+--------------+-------+----------+----------+-------+Unique users: 4Average total: $33.37 question 17with respect to the progression of shin-byung, which of the following actions by the patient would best demonstrate high self-efficacy? TRUE/FALSE.Disparate-treatment discrimination occurs when a protected group of people is adversely affected by an employers practices, procedures, or tests even though they do not appear to be discriminatory. Drag each number to a box to complete the table. Each number may be used once or not at all.8,000533,00021,000Kilometers Meters1 2,0005,0008 Jordan is constructing the bisector of What should Jordan do for the first step? Question 1 options: Place the point of the compass on point M and draw an arc, making sure the width is greater than MN. Place the point of the compass on point M and draw an arc, making sure the width of the compass opening is less than MN. Use the straightedge to extend in both directions. Use the straightedge to draw the line that passes through point M. According to Newton's law of cooling (sec Problem 23 of Section 1.1), the temperature u(t) of an object satisfies the differential equation du/dt = -K(u - T) where T is the constant ambient temperature and k is a positive constant. Suppose that the initial temperature of the object is u(0) = u_0 Find the temperature of the object at any time. Using the Bloch theorem, show that the probability of finding an electron at a position r+R in the crystal is the same as that of finding it at a position r. Here, R is a Bravais lattice vector. to test this series for convergence [infinity] n / (n^5 + 6)n=1you could use the limit comparison test, comparing it to the series [infinity] 1 / n^pn=1where p= _____completing the test, it shows the series:a. divergesb. converges Which one of these people is not Deviant? Group of answer choices:Martin Luther KingRosa ParkGeorge WashingtonAdolph HIlterNone, they are all Deviants explain what is meant by the following terms a. suspension type insulator wire c. corona effect d. sag of a transmission line e. reactance of a line How do the nylon fibers produced compare with commerically produced nylon, which is used (for example) in sports clothing? true/false. many real estate industry experts indicate that the pandemic has precipitated homeownership demand that we would have not been experiencing otherwise. the major risks faced by modern commercial bank managers are (select four) desiree and her spouse have been instructed to use the stop-start technique in the bedroom. which disorder does her spouse likely suffer from? what makes jessie particularly susceptible to the metabolic side effects of valproic acid? a simple tree community consists of 4 maples, 3 oaks, and 1 alder. the shannon-wiener diversity of this community is: let s be the hemisphere x2 y2 z2 = 4 with z 0. evaluate s (x2 y2)z ds