1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
balandron [24]
3 years ago
15

Write some code that uses a loop to read such a sequence of non-negative integers, terminated by a negative number. When the cod

e exits the loop it should print the number of consecutive duplicates encountered. In the above case, that value would be 3.
Mathematics
1 answer:
Marysya12 [62]3 years ago
5 0

Answer:

a

Step-by-step explanation:

You might be interested in
i need help with this question aka all the little questions in it. Will give brainliest!! Worth 10 pts but EXTRA if needed as pa
polet [3.4K]
A: x= 2.5
b: y= 12.9
c: z= 12
d: w= 2.75
e: t= 4
(Lemme know if it’s wrong)
6 0
3 years ago
Read 2 more answers
In 1990, 1000 adults were randomly selected and each was asked if they smoked, 300
Oduvanchick [21]

Answer:

 The proportion of smokers was higher in 1990 than in 2000

Step-by-step explanation:

Solution

Recall that,

The total number of sample 1 (n1) = 1000

Total  sample 2 number  (n2) = 2000

The number of favourable events (X1) = 300

The number of favourable events (X2) = 500

so,

p₁ = X₁/n₁ = 300/1000 = 0.3

p₂ = X₂/n₂ =500/2000 =0.25

α = 0.05

We are interested in testing the hypothesis.

The  hypothesis (Null) ....>  H₀ : p₁ = p₂

Alternate hypothesis------ > H₁ : p₁ > p₂

Thus,

P = X₁ + X₂/ n₁ + n₂

P =300 + 500/1000 +2000

P =800/3000

=0.2667

Now,

Z₀ = P₁ - P₂/√ P (1 -P) (1/n₁ + 1/n₂)

Z₀ =  0.3 - 0.25/√0.2667  (1 - 0.2667) (1/1000 + 1/2000)

Z₀ = 0.4999999999999999/√ 0.2667 (0.7333000000000001) (0.001 +0.0005)

Then,

Z₀ = 0.4999999999999999/√0.00029335666500000004

Z₀ = 2.9193

so,

zα/2 = z0.05/2 =z0.025

zα/2 = 1.6448536269514722

Now, we apply the decision rule:

Decision Rule: Reject the null hypothesis if the statistic value test is higher than the critical value 1.6448536269514722

The statistic value, 2.9193 is greater than the critical value 1.6448536269514722,  then we will reject the null hypothesis.

Therefore, the proportion of smokers was higher in 1990 than in 2000

3 0
3 years ago
My sisters age is greater than 40 but less than 50. Her age is divisible by 2, 4, 8, and 12. How old is my sister?
Elodia [21]

Answer:

48

Step-by-step explanation:

48 is divisble by all of them

5 0
3 years ago
Read 2 more answers
PLEASE help (desperate) :(
mars1129 [50]

Answer:

4= \sqrt{16} \\1.5   = \sqrt{2.25}\\8 = 6^{2} /9*2\\1 = \frac{12 - 2}{6 + 4}\\5 = \sqrt{16 + 9} \\9 = 63/3^{2} +|2|

6 0
3 years ago
Ariel works as a veterinary assistant and earns $19.60 per hour. Last week, she worked 7 1/2 hours each day on Monday through We
sergij07 [2.7K]
She earned 661.50 dollars. If she worked 7.5 hrs each day Mon-Wed, she worked 22.5 hrs from Mon-Wed because 7.5 times 3 is 22.5. She also worked 6 hrs on Sat. and 5.25 hrs on Sun., so in total, she worked 33.75 hrs last week. To find out her pay, we have to multiply the total hrs by the amount she gets payed, 19.60. 33.75x19.60 is 661.50, the amount she got payed last week.
7 0
3 years ago
Other questions:
  • I just need help with #21. I don’t know to figure it out. Please help. Thanks. :)
    7·1 answer
  • Need help with my problem of the day it’s confusing I’m not good at math :| HELP
    6·1 answer
  • Solve the quadratic equation by factoring:<br><br> 6x²−x=15
    6·1 answer
  • How do u solve 11p + 16 = 2p + 7 ?? please give a step by step *EXTRA POINTS*
    10·2 answers
  • We get the same result if we multiply a number by 4 or if we multiply the number by 7 and then add 9
    6·1 answer
  • A city has a population of 2,000 if 1,500 residents speak Spanish what percent of the population is Spanish speaking
    15·2 answers
  • 6% of $33 is $______<br><br> someone please answer and thanks :) i'll give brainilist &lt;3
    9·1 answer
  • 12 + 2(x + 6) - 8 = 26
    9·1 answer
  • HELP ME AND ILL GIVE U BRAINLIST I PROMISE BUT ITS ONLY IF U GET IT RIGHT
    9·2 answers
  • Complete the following sentence and determine the property being described:
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!