edhesive 4.5 Code Practice

Answers

Answer 1

Question: Write a loop that inputs words until the user enters STOP.

Answer:

count = 0

word = input("User Input: ")

while word!="STOP":

    count = count+1

    print("You entered: "+str(word))

    word = input("User Input: ")

print("All done. "+str(count)+" words entered")

Step-by-step explanation:

This line initializes counter variable count to 0

count = 0

This line prompts user for input

word = input("User Input: ")

The following iteration is executed until user enters STOP

while word!="STOP":

This increments counter variable by 1

    count = count+1

This prints the word entered by the user

    print("You entered: "+str(word))

This line prompts user for another input

    word = input("User Input: ")

This prints the number of input by the user

print("All done. "+str(count)+" words entered")

Answer 2

Answer:

c = 0

word = input("Enter a word: ")

while word!="STOP":

  c = c+1

  print("#" + str(c) + ": You entered "+str(word))

  word = input("Please enter the next word: ")

print("All done. "+str(c)+" words entered.")


Related Questions

Suppose that the halflife of a substance is 250 years . If there were ir 100 the substance , (a) give an exponential model for the situation, and (b) how much wil years?
can anyone answer this please:(

Answers

After 500 years one would have N nuclei of the original substance.

N = 100 * exp ( -ln(4) ) = 25

LOL.

I guess it is exp( - lamda * t)

Lamda, the decay constant is the ln(2) over the half life.

So we get exp( -ln(2)/250 * 500) or exp ( -ln(4) )
690 viewsView 1 Upvoter
Related Questions (More Answers Below)

Find the dimensions of the circle. Check your answer,
Area = 36π m^2

Please help!

Answers

Answer:

6 i think..

Step-by-step explanation:

12 1/2 gal= qt
can you help me plsssssss

Answers

Answer:

50 qrts

Step-by-step explanation:

12.5 gal = 4x qrts

12.5 * 4 = 50

in 1/2 a gal. there is 2qt.

so that makes a gal = 4qt.

12 x 4 =48qt plus 2qt equals 50 qt

A 100​-inch pipe is cut into two pieces. One piece is three times the length of the other. Find the length of the shorter piece.

Answers

The shorter piece would be 25 inches

How many of each color ballon will be in each bouquest


plz answer this

Answers

Answer:

15

Step-by-step explanation:

Question 9 of 25
Does this graph show a function? Explain how you know.

Answers

Answer:

wheres the graph tho...???????

Answer:

bruh

Step-by-step explanation:

no

what is the value of x in the equation below?
-3-(-8)-(-2)=x​

Answers

Answer: The X =7

Step-by-step explanation:

So by simplifying both sides of the equation, then isolating the variable you get the answer and find the value of x Hope this Helps

I'm answering any 5th grade and below questions​

Answers

Answer:

In at least one hundred words, describe how what Markandaya reveals about Kenny helps to shape his character, and which themes in Nectar in a Sieve are developed with this information.

Step-by-step explanation:

Please help me ASAP

Answers

All you have to do for this is plug in each coordinate point to the function. Ex. (0,2). Plug in 0 to the “x” part of the function, and solve that side; you will get 2. Then you plug in 2 in this case for “y”. You will end up with 2<2 which is a FALSE statement. And you keep doing that until you get a TRUE statement.
Answer:  Choice C.  (0,0)

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

Explanation:

This is the only point in the shaded region. The other points are either on the boundary line or outside the shaded region. Points on the boundary do not count because of the dashed line. The dashed line is due to no presence of an "or equal to" as part of the inequality sign.

See the diagram below.

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

A nonvisual approach will have you plug each of the coordinates into the given inequality.

For instance, choice A has x = 0 and y = 2 pair up which plug in to get

y < (-2/3)x + 2

2 < (-2/3)*0 + 2

2 < 2

which is false, so that's why choice A is not the answer. You should find that choices B and D are false too. Only choice C is true because

y < (-2/3)x + 2

0 < (-2/3)*0 + 2

0 < 2

which confirms the answer we got when we used the visual approach.

PLEASE HELP ME!!!

A particle, initially 15m from the origin and travelling at –2 ms^-1, accelerates at a constant rate and ends up –20 m from the origin and travelling at –5 ms^-1. What
is its acceleration?

Answers

is: v² = v₀² + 2ax.

Solve for a: a = (v² - v₀²)/(2x).
You are given v₀ and v, and x is easy to calculate since you are given its initial and final values. The rest is just arithmetic.

An insurance company checks police records on 582 accidents selected at random and notes that teenagers were at the wheel in 91 of them. Which is a correct 90% confidence interval for the proportion of all auto accidents that involve teenage drivers

Answers

Answer:

The 90% confidence interval is  [tex]0.1316 <  p <  0.1812[/tex]

Step-by-step explanation:

From the question we are told that

   The sample size is  n  =  582

   The number of teenagers at the wheel is k = 91

Generally the sample proportion is mathematically represented as

          [tex]\^ p = \frac{k}{n}[/tex]

=>       [tex]\^ p = \frac{91}{582}[/tex]

=>      [tex]\^ p = 0.1564[/tex]

From the question we are told the confidence level is  90% , hence the level of significance is    

      [tex]\alpha = (100 - 90 ) \%[/tex]

=>   [tex]\alpha = 0.10[/tex]

Generally from the normal distribution table the critical value  of  [tex]\frac{\alpha }{2}[/tex] is  

   [tex]Z_{\frac{\alpha }{2} } =  1.645[/tex]

Generally the margin of error is mathematically represented as  

     [tex]E =  Z_{\frac{\alpha }{2} } * \sqrt{\frac{\^ p (1- \^ p)}{n} } [/tex]

=>  [tex]E =  1.645 * \sqrt{\frac{0.1564  (1- 0.1564)}{582} } [/tex]

=>  [tex]E =  0.0248 [/tex]

Generally 95% confidence interval is mathematically represented as  

      [tex]\^ p -E <  p <  \^ p +E[/tex]

=>   [tex]0.1564  -0.0248 <  p <  0.1564  + 0.0248[/tex]

=>   [tex]0.1316 <  p <  0.1812[/tex]

40 is 60% of what number? **ROUND TO THE NEAREST TENTH** *

Answers

Answer:

66.7

Step-by-step explanation:

hope this helps

Answer:

40 is 60% of 66.7

Step-by-step explanation:

By using the bowtie method, you can check as 40 multiplied by 100 equals 4,000. Then divide 4,000 by 60 to get 66.66666. Since you round to the nearest tenth, it'll be 66.7

hope this helps! =)

if the part is 22 and the percent is 44% what is the whole

Answers

Answer:

50

Step-by-step explanation:

To find the whole you must write this as an equation.

.44x = 22

isolate x by dividing by .44

22/.44=x

x = 50

Answer: the whole is 50

Step-by-step explanation:

22 44

——- = ———

x. 100

cross multiply.

22x100=2200

2200 divided by 44 = 50


Math plz help
Geometry

Answers

?????????? What are you asking cause I’m confused
????

Answer:

Okay

Step-by-step explanation:

Since it's a parallelogram, the adjacent angles on the same side is complimentary. Meaning they add up to get 180°.

So,

12x° + 8x° = 180°

20x°= 180°

x°= 180/20

x°= 9°

Hope you understand. Thank you

PLEASE PLEASE HELP!!!!

Answers

Answer:

It's A or B but I think B

Step-by-step explanation:

What is the equation of this line in Slope intercept Form?​

Answers

Answer:

y = x - 5

Step-by-step explanation:

In the most recent NBA Finals series, Lebron James took 175 shots and made 80.
In his last NBA Finals series, Michael Jordan took 190 shots and made 85. Who had a better percentage?

Answers

Answer:

Michael Jordan

Step-by-step explanation:

190-85 =105

175-80=95

Answer:

Michael Jordan

Step-by-step explanation:

can someone please give me a hand with this ? ​

Answers

Answer:

C.) A' (-5,3), B' (-1,3), C' (4,-3)

Step-by-step explanation:

Translation rule: (x, y + 2)

A (-5,-5) -> A' (-5, -5 + 2) -> A' (-5, -3)

B (-1,1) -> B' (-1, 1 + 2) -> B' (-1, 3)

C (4,-5) -> C' (4, -5 + 2) -> C' (4, -3)

samantha had $299 in her bank account. If she go shopping and spend $348, what will her bank account be.

Answers

Answer:

-49

Step-by-step explanation:

You subtract 348 from 299 and you get -49 which means she is in debt

Rachel finished
3
_
4
of the race in 6 hours. How long was the entire race?

Answers

Answer:

8 hours

Step-by-step explanation:

Answer:

bjhmiukjgjhkuijkl

Step-by-step explanation:

A triangle has two sides of length 5 and 11. What is the smallest possible whole-number
length for the third side?

Answers

The smallest possible whole number length for the third side is 7

Data obtained from the question1st length = 52nd length = 113rd length =?

How to determine the smallest possible length of the 3rd side

Case 1

1st + 2nd > 3rd

5 + 11 > 3rd

16 > 3rd

3rd length < 16

Case 2

1st + 3rd > 2nd

5 + 3rd > 11

3rd > 11 - 5

3rd > 6

Thus, we have

6 < 3rd length < 16

Since the 3rd length is greater than 6, then the smallest possible length for the 3rd side is 7

Learn more about sides of triangles:

https://brainly.com/question/17113064

#SPJ1

Evaluate x=2
F(x)=2x+4

Answers

X=2
F(x)=2(2)+4
f(x)=8

A centroid of a triangle is always inside the triangle because the
passes through a vertex and the side opposite.
A. median
B. angle bisector
C. altitude
D. perpendicular bisector

Answers

The answer is B. Hope this helps!

Can someone pls help me right quick hurry pls

Answers

Answer:

b

Step-by-step explanation:

Answer:

D

Step-by-step explanation:

4 in hundreds (400)

3 in ones (3)

2 in tenths (.2)

9 in hundredths (.09)

How many cups of potatoes are needed if 1 cup of diced ham is used?

Answers

Answer:

i think 7 but i am not 100% sure

Step-by-step explanation:

Write the standard form equation of the line through the given points. through (0.-4) and (-3,-2)

Answers

Answer:

The standard form of equation of the line through the given points. through (0.-4) and (-3,-2) is [tex]\frac{2}{3}x+y=-4[/tex]

Step-by-step explanation:

The standard form of equation is [tex]Ax+By=C[/tex]

Finding slope

Using the given points (0,-4) and (-3,-2) we can find slope using formula:[tex]Slope=\frac{y_2-y_1}{x_2-x_1}[/tex]

[tex]Slope=\frac{-2-(-4)}{-3-(0)}\\Slope=\frac{-2+4}{-3} \\Slope=-\frac{2}{3}[/tex]

Finding y-intercept

Using point (0,4) and Slope=-2/3 we can find y-intercept

[tex]y=mx+b\\-4=-\frac{2}{3}(0)+b\\-4=0+b\\b=-4[/tex]

The slope intercept form of the line through the given points. through (0.-4) and (-3,-2) having slope =-2/3 and b=-4 will be:

[tex]y=mx+b\\y=-\frac{2}{3}x-4[/tex]

Now, standard form of equation will be: [tex]\frac{2}{3}x+y=-4[/tex]

So, The standard form of equation of the line through the given points. through (0.-4) and (-3,-2) is [tex]\frac{2}{3}x+y=-4[/tex]

PLEASE HELP ME! THANK YOU!

Answers

Answer:

i suppose it is on the 1, so it is (-1, inf) (-inf, 1)

how many fifths are in 4 4/10​

Answers

Answer:

2 fifths

Step-by-step explanation:

hope this helps

Answer:

22

Step-by-step explanation:

4 4/10 = 44/10 = 22/5 = 4 2/5

4 2/5

I need help please and thanks ​

Answers

Answer:

1.) 3  

2.) 11

3.)17

Step-by-step explanation:

you would want to add them up then multiply

Answer:

M<1=55

M<2=55

M<3= 70

Step-by-step explanation:

Angle 1 and 2 are equal

Help please dhskksbsjsjsbsis

Answers

Answer: Here is the pic and so its 8.9 so it would be 9 because your rounding and I hope this helps :D

Other Questions
what is the meaning of these names Ayorkor and Ayeley What does the word detached mean in the sentence below?The pilot's detached attitude helps him stay calm in emergencies.A. O stern and strictB. O cool and objectivec. O kind and sympatheticD. O concerned and involved What are some interesting background notes about the passage A vindication of the rights of women If anyone has the answer for this that would be really helpful!! Why was music an important part of education in Ancient Greece? If you could answer this, That would be great!! Thanks! :o) 10+10 Chloe answer I give brainliest to who ever gets it right!!!!!! Monte Madeline real world sroblemeComplete the rate to senuity were presses that represent achat engressionOperationAdditionMutton4.4Dommore than a1 less than 5A multiplied by 2distributed intogroups of 4Cents that to show how to write an expression to represent this word problem Joey has two pieces of wood. One is 120 inches and the other one is 210 inches long. He wants to cut both the pieces into smaller parts so that all these parts are of the same length.i) If he wants the smallest pieces to be as long as possible without having any leftover, how long should each piece be?Ans: ii) How many smaller pieces of wood will he have in total?Ans: The sixth grade class has 18 boys and 24 girls. The teacher wants to divide them into groups that have the same number of boys and the same number of girls. What is the greatest possible number of the groups the teacher can make Khalil may have lost his life, but I lost something too (165). What did Starr lose? Come up with your own team sports game and make your own rules and regulation. Complete the following paragraph pertaining to urban legends about George Washington. According to legends, when George Washington was six years old, he received a hatchet. He used it to cut down a tree that his father loved. Another legend states that George Washington once threw a across the Potomac River. The power to veto legislation: aforces legislators to do what the president wants bencourages legislators to negotiate with the president coften creates tension between the president and congressional leaders in the presidents own party dis most helpful to weak presidents because it makes them look strong eis most likely to antagonize those in the minority party Which of the following best identifies a central idea of this text? Why is it necessary for a bill to be considered by committee Tuition for one year at the University of Houston is about $12,300. Azul plans to attend this university and will save money each month for the next 4 years. His parents have saved $4,860 for his first year of tuition. Which plan shows the amount of money Azul will need to save in order to pay for his first year at the University of Houston?A. Azul will need to save $1,860 per month for the next 4 years.B. Azul will need to save $155 per month for the next 4 years.C. Azul will need to save $620 per month for the next 4 years.D. Azul will need to save $256.25 per month for the next 4 years causes of the french revolution Figure LMNO maps to L'M'N'O' by a 125 rotation about point T.Quadrilateral L M N O is rotated 125 degrees about point T to form quadrilateral L prime M prime N prime O prime.Which congruency statement is correct?LMNO L'M'N'O'LMNO O'M'N'L'ONML M'O'N'L'ONML O'M'N'L' Determine if the words below are cognates or false cognates El auto/ The automobile