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
sukhopar [10]
2 years ago
9

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:.
Mathematics
1 answer:
aleksandrvk [35]2 years ago
4 0

The program is an illustration of loops

<h3>What are loops?</h3>

Loops are program statements that are used to perform repetition

<h3>The main program</h3>

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:

brainly.com/question/16397886

You might be interested in
The sets of numbers 3, 4, 5 and 8, 15, 17 are Pythagorean triples. Use what you know about the Pythagorean Theorem and explain o
konstantin123 [22]

Answer:

When we have 3 numbers, like:

a, b and c.

Such that:

a < b < c.

These numbers are a Pythagorean triplet if the sum of the squares of the two smaller numbers, is equal to the square of the larger number:

a^2 + b^2 = c^2

This is equivalent to the Pythagorean Theorem, where the sum of the squares of the cathetus is equal to the hypotenuse squared.

Now that we know this, we can check if the given sets are Pythagorean triples.

1)  3, 4, 5

Here we must have that:

3^2 + 4^2 = 5^2

solving the left side we get:

3^2 + 4^2 = 9 + 16 = 25

and the right side:

5^2 = 25

Then we have the same in both sides, this means that these are Pythagorean triples.

2) 8, 15, 17

We must have that:

8^2 + 15^2 = 17^2

Solving the left side we have:

8^2 + 15^2 = 64 + 225 = 289

And in the right side we have:

17^2 = 17*17 = 289

So again, we have the same result in both sides, which means that these numbers are Pythagorean triples

4 0
3 years ago
How many miles are in 8,216 feet​
GarryVolchara [31]

Answer:

1.556061

Step-by-step explanation:

you need to divide the length value by 5280

3 0
4 years ago
Read 2 more answers
A store offers 20% off all items. If x is the original purchase price, which expression represents the final price with the disc
denis23 [38]

Answer:

B & D

Step-by-step explanation:

We use percents in decimal form to multiply it with the price. We convert percents into decimals by dividing the percent number by 100. For example, 78% divided by 100 becomes 0.78.

There are two ways to look at it:

  • For finding the price we pay during a sale, we focus on the percent we pay. If 22% off is the sale, then we spend 78% or 100-22=78. If 20% off is the sale, then we pay 80% or 0.80. Multiply that by x an unknown price and we have 0.8x.
  • We can find the percent off by multiplying the price by the percent conversion. So 20% is 0.20. Then subtract it from the original price to find the leftover that we pay. This is x-0.2x.


6 0
3 years ago
Read 2 more answers
Fill in the blank. In the triangle below, y=
arsen [322]

Answer:

47.10

Step-by-step explanation:

The mnemonic SOH CAH TOA reminds you that ...

... Cos = Adjacent/Hypotenuse

The value y is the length of the hypotenuse, and the given length 35 is the side adjacent to the given angle. Thus, the cosine relationship will be helpful.

Filling in the given values, we have ...

... cos(42°) = 35/y

Multiplying by y/cos(42°), we can find y to be ...

... y = 35/cos(42°) ≈ 35/0.7431

... y ≈ 47.10

Y will be approximately  47.10 in length

Step-by-step explanation:

we will use this  form that we memorized in our schools ............. SOH CAH TOA

CAH means , Cos ∅= Adjacent/Hypotenuse

Given values

∅ =42°

hypotenuse= y

adjacent side length = 35

now putting in our values  into

Cos ∅= Adjacent/Hypotenuse

OR

cos(42°) = 35/y

by multiplying y on both sides we get

y= 35/cos( 42°)

cos(42°)= 0.743

so  y= 35/0.743    

y = 47.10632

OR

y ≈ 47.10

3 0
3 years ago
6 3x−8≤23 AND −4x+26≥63
Airida [17]

The solution to the compound inequality given as 3x−8≤23 AND −4x+26≥63 is x ≤ 31/3 AND x ≤ -89/4

<h3>How to determine the solution to the compound inequality?</h3>

The compound inequality is given as:

3x−8≤23 AND −4x+26≥63

Rewrite properly as:

3x − 8 ≤ 23 AND −4x + 26 ≥ 63

Add to both sides of compound inequality ,the constant in the compound inequality expression

So, we have:

3x ≤ 31 AND −4x ≥ 89

Divide both sides of compound inequality, by the coefficient of the variable x in the compound inequality expression

So, we have:

x ≤ 31/3 AND x ≤ -89/4

hence, the solution to the compound inequality given as 3x−8≤23 AND −4x+26≥63 is x ≤ 31/3 AND x ≤ -89/4

Read more about compound inequality at

brainly.com/question/1604153

#SPJ1

8 0
1 year ago
Other questions:
  • Which of the following are solutions to the system graphed below.
    6·1 answer
  • PLEASE HELP!! 25 POINTS!! REALLY!!!
    12·2 answers
  • 1. What is the range of the data?
    15·1 answer
  • Which of these do you prove with a geometric proof? Select one of the options below as your answer:. . A.. experiments. B.. opin
    14·2 answers
  • 9. What is the system of equations that describes the following graph?
    5·1 answer
  • Which of the following ratios is equivalent to 2:3<br> A) 1/2<br> B) 4/6<br> C) 12/13<br> D)20/25
    6·2 answers
  • What is the surface area of the right cone below?<br>​
    13·1 answer
  • g(x)=2x+9g, left parenthesis, x, right parenthesis, equals, 2, x, plus, 9 g ( g(g, left parenthesis ) = 15 )=15right parenthesis
    13·2 answers
  • What does the number line above represent?
    10·1 answer
  • The diameter of a circle is 3.6 units. If its circumference is aπ units, what is the value of a?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!