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
Can someone help me with this
Serjik [45]

Answer:

1, 4, 9, 16,25, 36, 49, 64, 81, 100, 121, 144

Step-by-step explanation: hope it helps

8 0
2 years ago
Read 2 more answers
Hello please help thanks i’ll give brainliest!
erastovalidia [21]

Answer: A

Step-by-step explanation: Hope this help :D

8 0
3 years ago
Natalie consumes only apples and tomatoes. Her utility function is U(x, y) = x 2y 8 , where x is the number of apples consumed a
Kamila [148]

Answer:

16 apples.

Step-by-step explanation:

U(x, y) = x^2y^8

MU_x =\frac{\partial U}{\partial x}  = 2xy^8\\MU_y = \frac{\partial U}{\partial x} = 8x^2y^7\\

Price of apples, Px=$4

Price of tomatoes,  Py=$3

Ratio of their Marginal Utilities

\frac{MU_x}{MU_y}  =  \frac{Px}{Py}

\frac{y}{4x}  =  \frac{4}{3}

y=\frac{16x}{3}

Since Natalie’s income is $320

320 = xPx+yPy

320=4x + 3*\frac{16x}{3} \\320= 4x+16x = 20x\\x=\frac{320}{20} = 16\\Also\\y=\frac{16x}{3}=\frac{16X16}{3}=\$85.33

Since x=16, Natalie will consume 16 apples.

6 0
3 years ago
Solve x^2 +14x=15 by completing the square
ivanzaharov [21]

Answer:

x = -15 and x = 1

Step-by-step explanation:

Since we have to use the complete the square method, we first need to <u>rewrite the equation</u> in the form x^{2}+2ax+a^{2}=(x+a)^{2}.

This results in x^{2} + 14x + 7^{2} = 15 + 7^{2}.

Next, we <u>simplify the equation</u> to get x^{2} +14x+7^{2} = 64.

<u>Factoring </u>the left side gives us (x+7)^{2} = 64.

Finally we <u>solve the equations</u>: x+7=\sqrt{64} and x+7=-\sqrt{64}.

This gives us  x=1, and x=-15

6 0
3 years ago
Read 2 more answers
Handsome jack is buying a pony mad of diamonds. The price of the pony is p dollars and jack also has pay 25% diamond pony tax. H
Leona [35]

Answer:

5/4 P dollars

Step-by-step explanation:

Given that,

price of pony =  P

Tax which is to added in the total price of pony = 25% of pony price

so, now total price of pony including its tax = P + 25%P

                                                                        =  P + 25/100 P

                                                                        =  P + 1/4 P

                                                                        = 5/4 P dollars

                                                                        =  1.25 P dollars

5 0
3 years ago
Read 2 more answers
Other questions:
  • Lars works as a nurse and a lumberjack. He wants to work for at most 666 days this week, and he wants to earn more than \$950$95
    11·1 answer
  • angle a and angle b are complementary angles. angle a measures 67 degrees. what is the measure of angle b?
    7·1 answer
  • Which mathematical terms originated from the Arabic mathematician, al-Khwarizmi
    14·2 answers
  • The angles of a
    14·2 answers
  • A manufacturing plant earned $80 per man hour of labor when it opened. Each year, the plant earns an additional 5% per man hour.
    6·2 answers
  • Hep I’m bout to fail if I don’t get this right will give brainless if correct
    9·1 answer
  • PLS HELP.<br> YOU WILL GET A GOOD DEED :)
    15·1 answer
  • Will give Brainliest to correct answer!
    13·2 answers
  • Prove that there is only one circle determined by three noncollinear points
    5·2 answers
  • A circle's radius is 25 inches.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!