Define an action adder :: io () that reads a given number of integers from the key board, one per line, and displays their sum. For example:.

Answers

Answer 1

The program is an illustration of loops

What are loops?

Loops are program statements that are used to perform repetition

The main program

The program written in Python, where comments are used to explain each line is as follows:

#This initializes sum to 0

summ = 0

#This gets input for the first number

num = int(input())

#This is repeated while num is not -1

while num!= -1:

   #This calculates the sum

   summ+=num

   #This gets input for the num

   num = int(input())

#This prints the sum

print(summ)

Read more about loops at:

https://brainly.com/question/16397886


Related Questions

How to solve right triangles with no sides or angles given.

Answers

Use The Law of Cosines to calculate the unknown side.

What is the domain of 2x+4/x^2-4

Answers

Answer:

(2*(x^3-2x^2+2))/(x^2)

You need to paint your house to sell it. You can choose between two different painters, George and Henry. George will charge 90$ for the paint, and then $40 per hour. Henry will charge $120 for the paint and then $35 per hour.

After how many hours will the cost be the same?
If you estimate it will take about 10 hours to paint the room, who should you choose?

Answers

Answer:

At 6 hours the cost is the same. At 10 hours of service Henry is cheaper.

Step-by-step explanation:

This is simple. Follow my lead!

First we must create an equation for George

He charges $90 initially and then $40 per hour

So George's equation is:

[tex]y = 40x + 90[/tex]

Now let's find Henry's equation!

He charges $120 initially and then $35 per hour

So Henry's equation is:

[tex]y = 35x + 120[/tex]

1) To find when they will be the same, just set them equal to each other and solve for x.

[tex]40x + 90 = 35x + 120 \\ - 35x \\ 5x + 90 = 120 \\ - 90 \\ 5x = 30 \\ \div 5 \\ x = 6[/tex]

This means that when x = 6 or at 6 hours in the cost is the same!

2) Just solve both equations with x = 10

[tex]y = 40(10) + 90 \\ y = 400 + 90 \\ y = 490[/tex]

At 10 hours George's service costs $490!

[tex]y = 35(10) + 120 \\ y = 350 + 120 \\ y = 470[/tex]

At 10 hours Henry's service costs $470!

$470 is less than $490 so that means Henry is more cheaper!

Yay! We did it!

Brainliest Appreciated! If you have questions please don't hesitate to comment.

A crew of highway workers paved 2/15 mile in 20 min​
If they work at the same rate what portion of a mile will the pave in one hour

(Please explain your answer)

Answers

Answer:

6/15 or simplified 2/5

Step-by-step explanation:

id.k if this is right :))

What are the dimensions of a rectangle with an area of 18 square inches and a perimeter of 18 inches? A) 9 in. x 2 in.B) 5 in. x 4 in.C) 6 in. x 3 in.D) 8 in. x 1 in.

Answers

Answer:

C

Step-by-step explanation:

Area: [tex]6 \times 3 = 18[/tex]

Perimeter: [tex]2 \times (6 + 3) = 18[/tex]

Answer:

C) 6 in. x 3

Step-by-step explanation:

area of rectangle: length * widthperimeter of rectangle: 2(length + width)

using the formula:

area:

6 * 3

18 in²

perimeter:

2( 6 + 3)

2(9)

18 in

Hence proved that C is the right answer.

If the perimeter of RSTU is 72 and RV = 16,
find RT

Answers

Answer:32

Step-by-step explanation:

since rv is 16 just multiply by 2 and =32

Becuase it’s a rhombi each side is equal

A recipe for a cake calls for 3cups of water. Elisa accidentally put in 6 cups How many extra cups did she put in

A)5

B)4

C)1

D)3




NEED New help

Answers

Answer:

D) 3

Step-by-step explanation:

originally she had to put in 3 cups

she accidentally put in 3

the amount of extra cups is 6-3

=3

I think the answer is C

What is an equation of the line that passes through the points (-5, -6) and (5, 6)?

Answers

Answer:

It would be -5 + -6 = 65

Step-by-step explanation:

Add it up to together by removing the -

A soccer ball has a radius of 11 cm. Using π ≈ 3.14 , what is the approximate volume of the soccer ball in cubic centimeters?

Answers

It can be noted that the volume of the ball which is a sphere will be 5572.45 cm³.

How to calculate volume

From the information given, the soccer ball has a radius of 11 cm. This will be calculated by using the volume of a sphere.

Volume = 4/3πr³

= 4/3 × 3.14 × 11³

= 5572.45 cm³

In conclusion, the correct option is 5572.45 cm³.

Learn more about volume on:

https://brainly.com/question/1972490

Simplify the expression below. (10x+1)3x+5(5x)

Answers

Answer:

38x

Step-by-step explanation:

{(10x+1)3x}+5(5x)

10x+3x+25x=38x

Answer:

2x*(15x+14)

Step-by-step explanation:

First Step:

(3 • (10x + 1) • x) +  25x

Second Step:

 3x • (10x + 1) +  25x

Third Step:

.....

Fourth Step:

Pull out like factors :

30 x 2 + 28x  =   2x • (15x + 14)

Final result :

 2x • (15x + 14)

A box contains 2 red pencils, 15 blue pencils, 8 black pencils, and 5 green pencils. What is the best
description of the likelihood of selecting a blue pencil at random from the box?

Answers

Can you tell me how many pencils are in the box

Answer:

[tex] \frac{1}{2} [/tex]

Step-by-step explanation:

Red: 2, Blue: 15, Black: 8, Green: 5

Total number of pencil = 2 + 15 + 8 + 5 = 30 pencils

probability of picking a blue pencil at random= Number of blue pencil divided by Total number of pencil

=

[tex] \frac{15}{30} [/tex]

=

[tex] \frac{1}{2} [/tex]

Solve each system by using substitution.

Answers

Answer:

1: I think 14

Step-by-step explanation:

Answer:

See below.

(-1,-3), (1,-4), (1,-2)

Step-by-step explanation:

See the attached image.  One may also graph the equations and find the point they intersect (attached).

What is the future value if $18733 is invested at 5.1% for 10 years, compounded quarterly

Answers

Answer:

Step-by-step explanation:

The compound interest formula is [tex]P(1+r/n)^{nt}[/tex]

P: the initial amount of cashr: interest raten: # of times that interest is compounded per time periodt: # of time periods

Known information:

P: 18733r: 5.1% or 0.051n: quarterly or 4t: 10 yrs

Now let's set up the equation:

  Future amount: [tex]18733 (1+\frac{0.051}{4} )^{4*10}[/tex] [tex]=31,095.49[/tex]

Thus the future amount is $31.095.49.

Hope that helps!

please hurry! will give brainliest

Answers

Answer:

Step-by-step explanation:

If we think about a right triangle, we get that the hypotenuse is 24ft or the length of the ladder. The base of the ladder is 15ft away from the building which is the leg of the right triangle. The screenshot is the diagram (my drawing isn't that good lol:))

Thus we can use cosine function with the angle between the ladder and the ground since we need to find the angle and we get

[tex]cos\alpha = \frac{15}{24}[/tex]

and [tex]\alpha = 51.3 degrees[/tex]

The angle is 51.3 degrees hope that helps!

15. When x =9, which number is closest to the value of y on the line of best fit in the graph below?
12
1
9
17

Answers

It would be 9 I believe, bc if we know that x=9 we go to the x axis and we look at the point on the y axis it’s 9.
The line of best fit would be going between the two imaginary lines the points make. So if you’re looking at it like that, when x = 9, y = 11. However if the curriculum decides the line of best fit should be somewhere else y = 9

CORRECT ANSWER GETS BRAINLIEST

Answers

Answer:

Plug in the 12 into the x's and find the ordered pair

Step-by-step explanation:

g(x) = 3/(x - 2) - 1



Find the inverse function

Answers

Answer:

2

Step-by-step explanation:

g(3)=3/(3-2)-1

3/1-1

3-1

2

what is 3 7/10+5 3/4+3/4 in simplest form

Answers

Answer:

10 1/5

Step-by-step explanation:

3 7/10 + 5 3/4 + 3/4

3 14/20 + 5 15/20 + 15/20

8 + 44/20

8 + 2 + 4/20

10 + 1/5

10 1/5

A number is the same as 16 less than 3 times itself. What is the number?

Answers

Answer:

-8

Step-by-step explanation:

-8 x 3 = -24

-24 is 16 units less than -8

The dimensions of a triangular lot are 176 feet by 77 feet by 152 feet. If the price of such land is​ $3 per square​ foot, how much does the lot​ cost?

Answers

Answer:

$17556

Step-by-step explanation:

*PLS HELP*
The Question Is In The Attachment

Answers

Answer:

Step-by-step explanation:

Rhombus:

Base = b = 14 in

altitude = h = 12 in

Area of rhombus = b*h = 14 * 12 = 168 in²

Triangle:

base = b = 12 in

Height = h = 14 in

[tex]Area \ of \ triangle = \dfrac{1}{2}bh=\dfrac{1}{2}*12*14=12*7=84 \ in^{2}[/tex]

Area of the figure = area of the rhombus + area of the triangle

                               = 168 + 84

                               = 252 in²

What are the answers of this question’s?

2) 8(-3w + 7)

3) 7(-8-3w)

4) 4(-2 + 9b) + 3

5) 7(-8 + 6d)

6) 5(-6q + 4)

7)-9(-8 + 39)

8) 2(-8y + 4) - 9y

9)-4d + 2(-6-7d)

10) 4p + 2(-9p - 8)

Answers

The answer is a I took it along time ago

what is the equation of the line that passes through the point (-3,-8) and has a slope of 4?

please help

Answers

Step-by-step explanation:

the easiest approach with a given point and the slope of the line is the point-slope form :

y - y1 = a(x - x1)

where "a" is the slope, and (x1, y1) is a point on the line.

so, we get

y - -8 = 4(x - -3)

y + 8 = 4(x + 3)

if we need the slope-intercept form

y = ax + b

we now simplify the point-slope form

y + 8 = 4x + 4×3 = 4x + 12

y = 4x + 4

Simplify 7 + (−3). Please hurry

-10
-4
4
10

Answers

Answer: The answer is 4. 7+(-3) is like 7 minus 3.

Step-by-step explanation:

Answer:

4

Step-by-step explanation:

since the 3 is negative, you need to take 3 away from 7 = 4



Quadrilateral JKLM is a parallelogram. What is the m kjn

Answers

Answer:

solution: KL-2ML. LKIN=63x2=126*

Step-by-step explanation:

Mark me brainliest!!

Avery bought 23 rainbow and balloon stickers for her little sister. The rainbow stickers cost 1 cent apiece and the balloon stickers cost 6 cents apiece. If Avery spent exactly 113 cents, how many of each type of sticker did she buy?

Answers

Answer:

5 rainbows and 18 ballons

Step-by-step explanation:

113 ÷ 6 = 18.83333

18 balloons

6×18 = 108 ( total amount of balloons)

113 - 108 = 5

5+8 divided by 2

Someone pls tell me

Answers

Answer:

it's 6.5 5+8=13 divided by 2 is 6.5

Step-by-step explanation:

The answer to you’re question is 6.5 .

1. Solve: 3x42• (56 = 8x3)

Answers

Answer:126

Step-by-step explanation:40+40+40=120. 2x3 6. So 120+6= 126

If angle B measures 25°, what is the approximate perimeter of the triangle below? A right triangle is shown. Angle A is 90 degrees and angle B is 25 degrees. Side A B has a length of 4. 10. 3 units 11. 8 units 22. 1 units 25. 2 units.

Answers

Answer:

If angle B measures 25°, the approximate perimeter of the triangle is 10.48 units. A right triangle is shown. Angle A is 90 degrees and angle B is 25 degrees.

Step-by-step explanation:

a triangular sail has a base of 5m and a height of 10 m if the canvas costs 18 dollars a square meter, find the cost of canvas to make a sail

Answers

Answer:

$450

Step-by-step explanation:

Start by finding the area of the triangular sail.

[tex]A=\frac{1}{2}bh[/tex]

Substitute the given lengths into the equation:

[tex]A=\frac{1}{2}*5*10\\A=5*5\\A=25m^2[/tex]

Now, multiply this by 18 dollars per square meter.

[tex]25m^2(\frac{18}{1m^2})=25*18=450[/tex]

Other Questions
what is the answer? :D i need help with my homework and thx simplify 7/10 x 1/3 x 2/3HURRRYYYYYdue in 1 min nowA. 7/45B. 14/90C. 1 2/5D. 6 3/7due in 3 min please help!!!!!!!! Help me please!!!( ) What is an equation of the line in slope intercept form?a. y = 2x - 2b. y = -2x - 2c. y = -2x + 2d. y = 2x + 2 Can anyone help with this? Pls help us (I will give Brainly) Question 1-3The point (-10, 4) is on the graph of which of these functions?O y= -1X-3101y = - - X-1ay=x2 + 14O y=-x2 + 6 WILL GIVE BRANLIEST Factor the expression p^2q^2q+pq-q^3-p^3 and then find its value for p =4 and q = -4value = xfactored form of expression = x physics behind cricket bat The introduction of the cotton gin meant that enslaved workers on southern plantations no longer had to weave cotton cloth. Plant cotton seeds. Harvest cotton plants. Separate seeds from cotton. Which of the following were created by glaciers in North America?Check all that apply.E A. The Great Lakes. B. Long Island- C. Yellowstone's hot springs. D. The Grand Canyon Which of food groups contains BOTH plants and animal origins?a. fruits b. Vegetablesc. Proteind. Grains A city has a population of 160,000 people. Suppose the population grows by 5% eachyear. What will the population be after 10 years? Round your answer to the nearest wholenumber hello, i need some help, thanks what is the function of jacobson's organ of snake? Pls help meWhat is x and y In a video racing game, an obstacle randomly appears on the race track five times every 40 laps. Work out the probability that an obstacle appears on the track during a particular lap. 1. A rectangular cake pan is 13 centimeters by 21 centimeters by 5 centimeters. What is the volume of the cake pan?A. 340 cm 3B. 455 cm3C. 1365 cm3D. 886 cm3 Harry drew the number line below to solve a word problem,