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
Mozart's Music Store rents trombones for $34 a month. Bach's Music Store rents trombones for $30 per month plus a yearly fee of
jeka94

Answer:

Step-by-step explanation:

Let M(x) be the cost of renting from Mozart's Music Store for x years, and B(x) be the cost of renting from Bach's Music Store for x years.

From the problem statement, we can come up with the following equations:

M(x) = 34(12x)

B(x) = 30(12x) + 48x

Plugging in x = 9 for each equation, we can get the answer:

M(9) = 34(12 * 9)

M(9) = 34(108)

M(9) = 3672

B(9) = 30(12 * 9) + 48(9)

B(9) = 30(108) + 432

B(9) = 3240 + 432

B(9) = 3672

From this, we can see that the value is equal for both stores.

4 0
2 years ago
Help me please i need your helpp
Inga [223]

Answer:

D) -2

Step-by-step explanation:

to identify the slope of a line written in slope-intercept form, it would be

the coefficient of the 'x' term

5 0
2 years ago
If p = .8 and n = 50, then we can conclude that the sampling distribution of pˆ is approximately a normal distribution
FrozenT [24]

Answer:

Yes we can conclude.

Step-by-step explanation:

The sampling distribution of \hat{p} can be approximated as a Normal Distribution only if:

np and nq are both equal to or greater than 10. i.e.

  • np ≥ 10
  • nq ≥ 10

Both of these conditions must be met in order to approximate the sampling distribution of \hat{p} as Normal Distribution.

From the given data:

n = 50

p = 0.80

q = 1 - p = 1 - 0.80 = 0.20

np = 50(0.80) = 40

nq = 50(0.20) = 10

This  means the conditions that np and nq must be equal to or greater than 10 is being satisfied. So, we can conclude that the sampling distribution of pˆ is approximately a normal distribution

6 0
2 years ago
In the oak forest, 60 kids are playing capture the flag.That is 40 percent of all kids in the park.How many kids are in the park
Romashka [77]

Answer:

150 kids

Step-by-step explanation:

If 60 kids is 40% of the total kids, we can add another 60 to get 80% and then half of 60 (30) to bring the total up to 100% of the kids.

6 0
2 years ago
Read 2 more answers
James earned $39,600 last year. He paid $11,250 towards rent and $1,422 in car payments. What percent of his earnings did Jon pa
tester [92]
Step 1:
Add rent & car payments

=11,250+1422
=$12,672

Step 2:
to determine %, set up a proportion
12,672 is to his total of 39,600 as x is to 100

12,672/39,600 = x/100
cross multiply
(12,672)(100) = (39,600)(x)
1,267,200= 39,600x
divide both sides by 39,600
32%= x

OR

Alternative Step 2:
12,672 ÷ 39,600= 0.32
Alternative Step 3:
0.32 x 100 = 32%
or move decimal to the right 2 places

His rent and car payments are 32% of his earnings.

Hope this helps! :)
5 0
3 years ago
Read 2 more answers
Other questions:
  • Pleas help I’m in a hurry
    11·1 answer
  • Find b.<br> Round to the nearest tenth:
    12·2 answers
  • Karlen started painting the walls at 10:45 am, and he said that he could complete the job at 5:25 pm. His father said that five-
    10·1 answer
  • SV is an angle bisector of ∠RST. If m∠RSV = (2x + 8)° and m∠RST = (6x − 26)°, find x.
    7·1 answer
  • PLZ DO EXACTLY AS STATED, WILL GIVE BRAILIEST AND 30 POINTS!!
    11·1 answer
  • Which of the following ordered pairs is the solution to the system of linear equations?
    12·1 answer
  • Move the slider to rotate △ABC. at which angles does △A’ B’ C’ coincide with △ABC △DEF △GHI △JKL
    12·1 answer
  • Given sin A =11\61 and that angle A is in Quadrant I find the exact value of tan A in simplest radical form using a rational den
    13·1 answer
  • Lines m and lines n are parallel . They are cut by transversal t . What other angle is equal to 65 degrees
    10·1 answer
  • Jayson used 0.5 cup of kernels to make 16 cups of popcorn. How many cups of popcorn would he make if he used 0.75 cup of kernels
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!