g In a random sample of 60 shoppers chosen from the shoppers at a large suburban mall, 36 indicated that they had been to a movie in the past month. In an independent random sample of 50 shoppers chosen from the shoppers in a large downtown shopping area, 31 indicated that they had been to a movie in the past month. What significance test should be used to determine whether these data provide sufficient evidence to reject the hypothesis that the proportion of shoppers at the suburban mall who had been to a movie in the past month is the same as the proportion of shoppers in the large downtown shopping area who had been to a movie in the past month

Answers

Answer 1

Answer:

Option E, two-proportion z test  should be used to determine whether these data provide sufficient evidence to reject the hypothesis that the proportion of shoppers at the suburban mall who had been to a movie in the past month is the same as the proportion of shoppers in the large downtown shopping area who had been to a movie in the past month

Step-by-step explanation:

The complete question is

In a random sample of 60 shoppers chosen from the shoppers at a large suburban mall, 36 indicated that they had been to a movie in the past

month. In an independent random sample of 50 shoppers chosen from the shoppers in a large downtown shopping area, 31 indicated that

they had been to a movie in the past month. What significance test should be used to determine whether these data provide sufficient

evidence to reject the hypothesis that the proportion of shoppers at the suburban mall who had been to a movie in the past month is the same

as the proportion of shoppers in a large downtown shopping area who had been to a movie in the past month?

A one-proportion z interval B two-proportion z interval

B two-proportion z interval

C two-sample t test D one-proportion z test

D one-proportion z test

E two-proportion z test

Solution

Two proportion z test is used to compare two proportions. In this test the null hypothesis is that the two proportions are equal and the alternate hypothesis is that the proportions are not the same. The random sample of populations serve as two proportions.

Hence, option E is the best choice of answer


Related Questions

9
On a field trip, there are 3 adults for every 45 students. Which graph models a relationship with
the same unit rate?
А
с
101
9
10
9
8
7
7
6
5
4
b
6.
5
4
3
2
3
2
1
0
30
60
90 120 150
30
60 90 120 156
B
D
10T
9
8
10
9
6
5

Answers

Answer:

I believe the answer is C

At a state university on the west coast, 13% of undergraduate students are of Asian origin. Among students of Asian origin, 11% major in Humanities, 7% in Social Sciences, 31% in Biological and Physical Sciences, 36% in engineering, and the remaining 15% in Business. Among students of other ethnicities, 19% major in Humanities, 16% in Social Sciences, 12% in Biological and Physical Sciences, 18% in engineering, and the remaining 35% in Business. One undergraduate student majoring in Business is randomly selected from this university. Find the probability that the student is not of Asian origin.

Answers

Answer:

0.9398 = 93.98% probability that the student is not of Asian origin.

Step-by-step explanation:

Conditional Probability

We use the conditional probability formula to solve this question. It is

[tex]P(B|A) = \frac{P(A \cap B)}{P(A)}[/tex]

In which

P(B|A) is the probability of event B happening, given that A happened.

[tex]P(A \cap B)[/tex] is the probability of both A and B happening.

P(A) is the probability of A happening.

In this question:

Event A: Business student

Event B: Not of Asian origin.

Probability that the student is an undergraduate majoring in business.

15% of 13%(Of Asian origin).

35% of 100 - 13 = 87%(Not of Asian origin). So

[tex]P(A) = 0.15*0.13 + 0.35*0.87 = 0.324[/tex]

Business student and not of Asian origin:

35% of 87%. So

[tex]P(A \cap B) = 0.35*0.87 = 0.3045[/tex]

One undergraduate student majoring in Business is randomly selected from this university. Find the probability that the student is not of Asian origin.

[tex]P(B|A) = \frac{P(A \cap B)}{P(A)} = \frac{0.3045}{0.324} = 0.9398[/tex]

0.9398 = 93.98% probability that the student is not of Asian origin.

The measure of the interior angles of four refusal

Answers

Answer:

B) 180(n-2)

Step-by-step explanation:

B) 180(n-2)

A meteorologist stated that 1 foot of snowfall would melt to make 2 inches of water. Based on this rule, how much water should result from 84 inches of snowfall ?

Answers

80 I guess is the answer

An equilateral triangle has a side length of 10 units. What is its area?

Answers

Answer:

Hope my ans help you plz if u can mark me brainlist

Step-by-step explanation:

A = 43.3

The area of an equilateral triangle has a side length of 10 units is 43.3 square units.

What is an equilateral triangle?

An equilateral triangle is one with equally long sides on both sides. The three angles opposite the three equal sides are equal in size because the three sides are equal. As a result, with each angle measuring 60 degrees, it is sometimes referred to as an equiangular triangle.

Given the side of an equilateral triangle  = 10 units

the area is given by,

A = √3/4 × a²

where a is the length of the side,

A = √3/4 × 10²

A = 1.732 x 100/4

A = 43.3 square units.

Therefore, the area of a triangle is 43.3 square units.

Learn more about equilateral triangle;

https://brainly.com/question/3461022

#SPJ5

How is basic math used in a business? Give me three examples.

Answers

Answer:

Understanding basic business math is necessary for profitable operations and accurate record keeping. Knowing how to add, subtract, multiply, divide, round and use percentages and fractions is the minimum you need to price your product and meet your budget.

7.
Judy can decorate 3 cakes in 5 hours. Which graph has a slope that best represents the
number of cakes per hour Judy can decorate?
A
Cake Decorating
Cake Decorating
Number of Cakes
30
27
24
21
18
15
12
Number of Cakes
30
27
24
8 21
18
15
12
9
G
3
0 1 2 3 4 5 6 7 8 9 10
Time (hours)
0 1 2 3 4 5 6 7 8 9 10
Time (hours)
B
Cake Decorating
D
Cake Decorating
y
30
2
30
27
24
21
Number of Cakes
200
18
15
Number of Cakes
19

Answers

Answer:

B

Step-by-step explanation:

is the one that shows how many cakes were made in an hour

hour is 60 minutes so u will divide 60 by 3 it equal to 20

it means they make 20 cakes in 1hour

A sample from a population with μ = 40 and σ = 8 has a mean of M = 36. If the sample mean corresponds to a z = –1.00, then how many scores are in the sample?

Answers

Answer:

There are 4 scores in the sample.

Step-by-step explanation:

To solve this question, we need to understand the normal probability distribution and the central limit theorem.

Normal Probability Distribution:

Problems of normal distributions can be solved using the z-score formula.

In a set with mean [tex]\mu[/tex] and standard deviation [tex]\sigma[/tex], the zscore of a measure X is given by:

[tex]Z = \frac{X - \mu}{\sigma}[/tex]

The Z-score measures how many standard deviations the measure is from the mean. After finding the Z-score, we look at the z-score table and find the p-value associated with this z-score. This p-value is the probability that the value of the measure is smaller than X, that is, the percentile of X. Subtracting 1 by the pvalue, we get the probability that the value of the measure is greater than X.

Central Limit Theorem

The Central Limit Theorem estabilishes that, for a normally distributed random variable X, with mean [tex]\mu[/tex] and standard deviation [tex]\sigma[/tex], the sampling distribution of the sample means with size n can be approximated to a normal distribution with mean [tex]\mu[/tex] and standard deviation [tex]s = \frac{\sigma}{\sqrt{n}}[/tex].

For a skewed variable, the Central Limit Theorem can also be applied, as long as n is at least 30.

In this question, we have that:

[tex]\mu = 40, \sigma = 8, X = 36, Z = -1, s = \frac{8}{\sqrt{n}}[/tex]

We want to find n. So

[tex]Z = \frac{X - \mu}{\sigma}[/tex]

By the Central Limit Theorem

[tex]Z = \frac{X - \mu}{s}[/tex]

[tex]-1 = \frac{36 - 40}{\frac{8}{\sqrt{n}}}[/tex]

[tex]-4\sqrt{n} = -8[/tex]

[tex]4\sqrt{n} = 8[/tex]

Simplifying by 4

[tex]\sqrt{n} = 2[/tex]

[tex](\sqrt{n})^2 = 2^2[/tex]

[tex]n = 4[/tex]

There are 4 scores in the sample.

Jason wants to score at least 15 points in his basketball game. He scored 8 points in the first half of the game. He needs to score b points to reach his goal. Which inequality can be used to find the possible values for b?
A. b +8 ≥ 15
B. b +8 > 15
C. b - 8 ≤ 15
D. b - 8 < 15

Answers

Answer:

A.

Step-by-step explanation:

Let's say that b=7. This would mean that he has equaled his goal. If it is greater than 7, the equation still makes since.

Question 3
5 pts
(05.01 MC)
What will be the perimeter and the area of the rectangle below if it is enlarged using a scale factor of
4.5? (5 points)
6 cm
H
8 cm
O Perimeter - 126 cm, area = 131.25 cm?
O Perimeter = 46 cm, area = 972 cm?
Perimeter = 126 cm, area = 972 cm2
Perimeter - 46 cm, area = 131.25 cm2

Answers

Answer:

Perimeter is 126cm and area is 972[tex]cm^2[/tex]

Step-by-step explanation:

Scale factor means you multiply the dimensions by the factor. In this case 4.5

The width 6cm becomes 27cm. The length 8cm becomes 36cm.

Perimeter = 2*L + 2*W, L is length and W is width.

[tex]P=27*2cm+36*2cm\\P=54cm+72cm\\P=126cm[/tex]

Area = L*W

[tex]A=27cm*36cm\\A=972cm^2[/tex]

Can someone answer and explain ill mark brainliest

Answers

Answer:

56 of the coins are dimes

Step-by-step explanation:

Dimes = D

Quarters = Q

D+Q=102

10D+25Q=1710

-10(D+Q=102)

-10D-10Q=-1020

+10D+25Q=1710

15Q-690

Q=46

D=102-46=56

CHECK 46(25)+56(10)=1150+560=1710 = YES

Whoever answers first will get marked Best!A cheetah runs 177 miles in 3 hours,at this rate how many hours will it take to travel 531 miles?

Answers

Answer:

9 hours

Step-by-step explanation:

brainliest plss???

Anna juices 8 quarts of juice in 1 minute. How many gallons does she have in 1 hour? (4 quarts = 1 gallon)

Answers

Answer: 120

Step-by-step explanation: 8 times 60 is 480 then converted to gallons do

480/4

Can someone help me out please ? Will give brainiest answer. Need all 6

Answers

Step-by-step explanation:

tell me the math problem I will tell u the answer its blurry

plss answer Part A #1 abc . i will give brainliest. late answers accepted​

Answers

Answer:

a. (3x² - 2x - 5) units²

b. (x² - x) units²

c. (2x² - x - 5) units²

Step-by-step explanation:

a. Area of the frame = L*W

L = (x + 1) units

W = (3x - 5) units

Area of the frame = (x + 1)(3x - 5)

Apply distributive property

x(3x - 5) +1(3x - 5)

3x² - 5x + 3x - 5

Area of the frame = (3x² - 2x - 5) units²

b. Area of the picture = L*W

L = x units

W = (x - 1) units

Area of the picture = x(x - 1)

Apply distributive property

= x² - x

Area of picture = (x² - x) units²

c. Area of the frame that surrounds the picture = area of frame - area of picture

= (3x² - 2x - 5) - (x² - x)

= 3x² - 2x - 5 - x² + x (distributive property)

Add like terms

= 3x² - x² - 2x + x - 5

= 2x² - x - 5

Area of the frame that surrounds the picture = (2x² - x - 5) units²

Fewer young people are driving. In 1995, 63.9% of people under years old who were eligible had a driver's license. Bloomberg reported that percentage had dropped to in . Suppose these results are based on a random sample of people under years old who were eligible to have a driver's license in and again in . a. At confidence, what is the margin of error and the interval estimate of the number of eligible people under years old who had a driver's license in

Answers

Answer:

A. 0.0272

B. 0.0278

C. No

Step-by-step explanation:

a. Calculation for the margin of error and the interval estimate of the number of eligible people who had a driver’s license in 1995u

First step is to calculate the Standard error using this formula

Standard error(SE)= √(pcap * (1 - pcap)/n)

Where,

pcap represent sample proportion = 0.639

n represent sample size = 1200

Let plug in the formula

Standard error (SE)= √(0.639 * (1 - 0.639)/1200)

Standard error(SE)= 0.0139

Second step is to find Zc using this formula

Zc = Z(α/2)

Where,

α = 1 - 0.95 = 0.05

α/2 = 0.05/2 = 0.025

Zc = Z(α/2) = 1.96

Now let calculate the Margin of Error using this formula

Margin of Error= zc * SE

Let plug in the formula

Margin of Error = 1.96 * 0.0139

Margin of Error = 0.0272

Therefore the Margin of Error is 0.0272

b. Calculation for the margin of error and the interval estimate of the number of eligible people who had a driver’s license in 2016

First step is to calculate the Standard error using this formula

Standard error(SE)= √(pcap * (1 - pcap)/n)

Where,

pcap represent sample proportion = 0.417

n represent sample size = 1200

Let plug in the formula

Standard error (SE)= √(0.417 * (1 - 0.417)/1200)

Standard error(SE)= 0.0142

Second step is to find Zc using this formula

Zc = Z(α/2)

Where,

α = 1 - 0.95 = 0.05

α/2 = 0.05/2 = 0.025

Zc = Z(α/2) = 1.96

Now let calculate the Margin of Error using this formula

Margin of Error= zc * SE

Let plug in the formula

Margin of Error = 1.96 * 0.0142

Margin of Error = 0.0278

Therefore the Margin of Error is 0.0278

c. Based on the above calculation for both (a) and (b) the MARGIN OF ERROR are NOT the same reason been that (a) Margin of Error is 0.0272 while (b) Margin of Error is 0.0278 which simply shows that the proportion in parts (a) and are different.

solve the equations by factorization method:
(ii) x² - 2ax + a²-b=0​

Answers

Answer:

x=a+ b x=a-b

Step-by-step explanation:

BRAINLIEST PLSSSSSSSS

USE SYMBOLAB IT WORKS AND MATHPAPA

What do you call a characteristic of a living thing that helps it survive?

Answers

Answer:

An adaptation is a characteristic that helps a living thing survive and reproduce. True Natural selection is a change in the characteristics of living things over thing

The one characteristic of a living thing which helps it to survive is an adaptation. This help to survive an organism in its environment.

What is adaptation?

Adaptation for the living thing is the main characteristics which help a living thing to be alive. It helps the living things to survive in its environment.

Importance of adaptation-

Organism are adapted to habitual thing, which help them to survive.Help to behave in changing environment.Enhance the standard of living.

Thus, the one characteristic of a living thing which helps it to survive is an adaptation. This help to survive an organism in its environment.

Learn more about adaptation here;

https://brainly.com/question/1213023

#SPJ2

The measures of two angles are 2x⁰ and (3x + 20)⁰. What is the measure of each angle if x = 14?

A. 48⁰, 42⁰
B. 28⁰, 62⁰
C. 36⁰, 62⁰
D. 48⁰, 28⁰

Answers

Answer:

The measures of two angles are 2x⁰ and (3x + 20)⁰. What is the measure of each angle if x = 14?

b 28 and 62

The workers' union at a particular university is quite strong. About 96% of all workers employed by the university belong to the workers' union. Recently, the workers went on strike, and now a local TV station plans to interview workers (chosen at random) at the university to get their opinions on the strike. What is the probability that exactly of the workers interviewed are union members

Answers

Answer:

The probability that exaclt x of the members are union members from the n interviewed is given by:

[tex]P(X = x) = C_{n,x}.(0.96)^{x}.(0.04)^{n-x}[/tex]

Step-by-step explanation:

For each worker, there are only two possible outcomes. Either they are union members, or they are not. Members are independent of other members. This means that we use the binomial probability distribution to solve this question.

Binomial probability distribution

The binomial probability is the probability of exactly x successes on n repeated trials, and X can only have two outcomes.

[tex]P(X = x) = C_{n,x}.p^{x}.(1-p)^{n-x}[/tex]

In which [tex]C_{n,x}[/tex] is the number of different combinations of x objects from a set of n elements, given by the following formula.

[tex]C_{n,x} = \frac{n!}{x!(n-x)!}[/tex]

And p is the probability of X happening.

About 96% of all workers employed by the university belong to the workers' union.

This means that [tex]p = 0.96[/tex]

What is the probability that exactly of the workers interviewed are union members

We want probability of x, from n workers interviewed. So

[tex]P(X = x) = C_{n,x}.p^{x}.(1-p)^{n-x}[/tex]

[tex]P(X = x) = C_{n,x}.(0.96)^{x}.(0.04)^{n-x}[/tex]

What is the sum of the length of the longest meteor and the length of the shortest meteor? (4 points)

A line plot with the title, length of meteors. The data is measurement in inches. The line plot goes from two eighths to one and seven eighths, with fourteen tick marks in all. The first tick mark is two eighths and has one data point. The second tick mark is three eighths and has three data points. The third tick mark is four eighths and has two data points. The fourth tick mark is five eighths and has no data points. The fifth tick mark is six eighths and has two data points. The sixth tick mark is seven eighths and has no data points. The seventh tick mark is one and has no data points. The eighth tick mark is one and one eighth and has no data points. The ninth tick mark is one and two eighths and has one data point. The tenth tick mark is one and three eighths and has two data points. The eleventh tick mark is one and four eighths and has no data points. The twelfth tick mark is one and five eighths and has no data points. The thirteenth tick mark is one and six eighths and has two data points. The fourteenth tick mark is one and seven eighths and has one data point.

a
one and one eighth inches

b
two and one eighth inches

c
five and one eighth inches

d
nine and one eighth inches

Answers

Answer:

two and one eighth inches

A pizza dinner for $20 was marked down 20%. What was the new sale cost of the dinner?​

Answers

Answer:

$16

Step-by-step explanation:

take 20 multiply it by 0.2 and you get 4 multiplied by 4 is 16 so it is 16 dollars

16 that’s your answer to ur question

what is the value? when r equals 0

Answers

Answer:

I do not know the answer to this question

Step-by-step explanation:

PLEASE HELP! The AHS football team did a weigh-in at the start of training camp. The weights of the players were distributed normally with a mean of 98kg and a standard deviation of 6kg. What percentage of players are under 86kg?

Answers

Answer:  2.5%

=============================================================

Explanation:

Notice how 98-2*6 = 98-12 = 86. So we're 2 standard deviations below the mean.

Start at the center, which is where the highest point is located. The value 98 is at the center. Then move 2 spots to the left, which has us move 2 standard deviations lower than the mean, and we arrive at 86. Refer to the diagram below.

From here, we add up the percentages in that diagram that are below the 86 mark. Those percentages are the 0.15% and 2.35%

So we get (0.15%) + (2.35%) = 2.5% which is the answer

Side note: This diagram is using the Empirical Rule. Some textbooks call it the "68-95-99.7 rule", but that's more clunky of a name in my opinion. The three values 68, 95 and 99.7 refer to the approximate percentage values within 1, 2 and 3 standard deviations of the mean.

Help please help. Need answer ASAP. 15 points. Help help help.

Answers

Answer:

ㅜ료우료ㅠㅠㅗ프ㅡㅓ효유ㅠ슈유슈뤂ㄹ푸ㅛㅜㅠ로휴ㅜ휴ㅐㅓㄴㅁㄱ무홈

Step-by-step explanation:

쵸푳퓨추르ㅛㅛㅠ롰ㄹ류ㅗ슔ㄹㅅ휴ㅗ료ㅓㅕ

Select the procedure that can be used to show the converse of the
Pythagorean theorem using side lengths chosen from 5 cm, 9 cm, 12 cm, and
15 cm.
O A. Knowing that 92 + 122 + 152draw the 5 cm side and the 9 cm side
with a right angle between them. The 15 cm side will fit to form a
right triangle
B. Knowing that 52 + 92 < 122 draw the 5 cm side and the 9 cm side
with a right angle between them. The 12 cm side will fit to form a
right triangle
C. Knowing that 92 + 122 = 152, draw the 9 cm side and the 12 cm
side with a right angle between them. The 15 cm side will fit to
form a right triangle.
D. Knowing that 92 + 122 = 1), draw any two of the sides with a right
angle between them. The third side will fit to form a right triangle.

Answers

Answer:it is C

Step-by-step explanation:

Jillian measured how far each of her paper airplanes flew in feet.
Complete the table to how how far each paper airplane flew in inches.

Answers

Answer:

72

Step-by-step explanation:

there are 12 inches per foot, so if five feet is equal to 60 inches then just add 12 and you get 72. 6 feet would be equal to 72 inches

Answer:

26 + 35 + 37 + 46 = 144

Every 3 feet is one yard, so 144/3 = 4

Step-by-step explanation:

48 Yards

Look for Patterns Sally sees
a pattern in these numbers. Describe
the pattern.
500, 501, 502, 503, 504, 505

Answers

Answer:

Step-by-step explanation:

It is an arithmetic sequence. The nth term = 499 + n

Observa la siguiente tabla que muestra los precios de un libro de cuentos y sus
respectivos descuentos en cuatro librerías.
Libreria

Answers

Answer:

No conozco este pero puedo ayudarte con otros

Step-by-step explanation:

Based on the table given, the bookstore that discounts more pesos from the original price is Leer es saber.

Which bookstore has the highest discount?

Discount from El cuentacuentos:

= 100 x 20%

= $20

Discount from Leer es saber:

= 125 x 25%

= $31.25

Discount from El librote:

= 80 x 5%

= $4.00

Discount from Imagina:

= 90 x 10%

= $9

The highest is therefore Leer es saber.

The rest of the question is:

Qué librería descuenta más pesos del precio original?

Find out more on discounts at https://brainly.com/question/1548141.

#SPJ6

PLEASE HELP!! WILL GIVE BRAINLIEST An artist has been commissioned to make a stained glass window in the shape of a regular octagon. The octagon must fit inside an 16-in. square space. Determine the length of each side of the octagon. Round to the nearest hundredth of an inch.​

Answers

The length of each side of octagon is 1.66 inches.
Other Questions
Answer the following questions. PLEASE HELP! WILL GIVE BRAINLIST!Jimmy wants to keep track of a friends college savings account and use slope intercept form to build a function, y = mx + b. What information will he need to know to accurately keep track of the account and create a function that will give the number of dollars in the account based on the number of months his friend will save money for college?A. The initial amount of money use to start the account, and use that deposit for BB. All of the aboveC. The amount of money he will save each month, and use that for slips or mD. The amount of months he will save money for a college, and use that amount of time for x 4. The teacher recommends that students read for 20minutes each night. How many pages will thestudent complete?proportional relationships Find the amount to which $600 will grow under each of these conditions: 8% compounded annually for 3 years. Do not round intermediate calculations. Round your answer to the nearest cent. $ 8% compounded semiannually for 3 years. Do not round intermediate calculations. Round your answer to the nearest cent. $ 8% compounded quarterly for 3 years. Do not round intermediate calculations. Round your answer to the nearest cent. $ 8% compounded monthly for 3 years. Do not round intermediate calculations. Round your answer to the nearest cent. $ 8% compounded daily for 3 years. Assume 365-days in a year. Do not round intermediate calculations. Round your answer to the nearest cent. Identify the climate zone shaded in pink on the map.(A. Equator(B. Polar(C. Temperate(D. tropical why should marriages and subsequent pregnancies not happened before the correct legal age of girls ?please answer fast I will mark as brainlist 7. Describe the role that Brian Epstein played in the development and marketing of the Beatles. Help fast plz!!!In a population of moths, wing color became darker over time. Which of thefollowing is the best evidence that the change in wing color was an evolutionary change?a) The size of the moth population changed.b) The average length of the moths' dark wings increased.c) The number of eggs that females laid during each breeding season increased.d) The frequencies of the alleles for dark wing color in the moth populationchanged. What is the authors primary purpose for writing the story?A, To explain what its like to be a twinB, To entertain readers using realistic portrayalsC, To inform readers about the importance of artD, To persuade readers to treat twins as individuals please help me please help me please help The Escape speed at the surface of a certain planet is twice that of the earth. If the planet has radius twice of the Earth. what is its mass in unit of earth's mass? What is the magnitude of the force that is exerted on a 20 kg mass to give it an acceleration of 10.0m/s2? Please help me I wanna go to sleep :( Write an expression equivalent to 6 2 + 5 + 4 that only has two terms. PLS HELP In triangle RST the vertices have coordinates of R(-1,10),S(5,4)and T (-4,-2). If the midpoints of side RS and RT were connected with a segment, what would the slope of this segment be?Plz helppp 3.A balloon is released from the top of a building. The graph shows the height of the balloon over time. What does the slope and y-intercept reveal about the situation?A. The balloon starts at a height of 500 ft and rises at a rate of 300 ft.B. The balloon starts at a height of 500 ft and rises at a rate of 150 ft.C. The balloon starts at a height of 0.05 ft and rises at a rate of 150 ft. Find the class mark of the class 160- 165 Which CVC word with a short "e" sounda.bagb.rugc.logd.jet DIMENSIONAL ANALYSISASAP!!! BRAINLIEST!!PLS HELP!!! SHOW ALL WORK +STEPS!! Thx! C++ "Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequence. Create a for loop that compares the two strings starting from index 0. For each match, add one point to userScore. Upon a mismatch, exit the loop using a break statement. Assume simonPattern and userPattern are always the same length. Ex: The following patterns yield a userScore of 4:Ex: The following patterns yield a userScore of 9: simonPattern: RRGBRYYBGY userPattern: RRGBBRYBGYResult: Can't get test 2 to occur when userScore is 9Testing: RRGBRYYBGY/RRGBBRYBGYYour value: 4Testing: RRRRRRRRRR/RRRRRRRRRYExpected value: 9Your value: 4Tests aborted.