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
hoa [83]
3 years ago
7

Consider the following code:

Computers and Technology
1 answer:
Art [367]3 years ago
8 0

Answer:

The output is 252

Explanation:

To get the output, I'll analyze the lines of code one after the other.

Here, user enters 78. So, start = 78

start = int(input("Enter the starting number: "))

Here, user enters 45. So, stop = 45

stop = int(input("Enter the ending number: "))

This initializes x to -10

x = -10

This initializes sum to 0

sum = 0

This iterates from 78 to 46 (i.e. 45 + 1) with a decrement of -10 in each successive term

for i in range (start, stop, x):

This adds the terms of the range

     sum = sum + i

This prints the calculated sum

print(sum)

The range starts from 78 and ends at 46 (i.e. 45 + 1) with a decrement of -10.

So, the terms are: 78, 68, 58 and 48

And Sum is calculated as:

Sum = 78 + 68 + 58 +48

Sum = 252

<em>Hence, 252 will be printed</em>

You might be interested in
Computer-generated color images of the brain that provide information about brain activity and glucose metabolism are produced b
frozen [14]

The answer to this question is the PET scan. Positron Emission Tomography or PET scan is an imaging test that checks and trace for diseases in the body. This also shows how the body organs is functioning / working. The doctor can evaluate the function of the patients body by the 3D color images produced by the PET Scan.  

4 0
3 years ago
When you set up social connections, each generic icon in the contacts list and the People Pane will be replaced with the profile
Annette [7]

Answer:

True.

Explanation:

When you established social links, your social media site profile may eliminate almost any generic symbol throughout the list of contacts and the Individuals Pane with profile pic the contact may have placed. Thus, the Users Pane would be exchanged with profile image of the contact while establishing the social connections.

6 0
3 years ago
Tim is in charge of the upcoming interschool baketball tournamnent. He wants to arrange all of the teams and their members in al
Scorpion4ik [409]
C sort will be the answer
5 0
3 years ago
Using the residual plot and computer output, answer the following question. I have included the numerical values of the five sma
Strike441 [17]

Answer:

No there are not any single outliers in this data sets.

5 0
3 years ago
Which of the following are efficient ways to use the Internet? Check all of the boxes that apply.
alexdok [17]

Answer:

The Answers are A & B

Explanation:

the other answers obviously make no sense what so ever seeing as they refer to using the internet for recreational purposes

5 0
3 years ago
Read 2 more answers
Other questions:
  • The purpose of a capacitor unit in a vacuum cleaner is to
    12·1 answer
  • What does this say:<br> √ans
    6·2 answers
  • Describe Ms word environment.​
    14·1 answer
  • The part of the poppet valve that contacts the valve seat is called the?
    10·2 answers
  • Which of the following actions might contribute to recommendations you see online?
    6·1 answer
  • Write a program that prompts the user to input five decimal numbers. The program should then add the five decimal numbers, conve
    5·1 answer
  • Write a program Gas.java that computes and displays the price a person will pay for gas at the gas station. The program takes th
    12·1 answer
  • Find the distance between the points.<br><br><br>(5,-2),(-6,-2)
    12·1 answer
  • What command do we use to enter data from the keyboard?
    8·1 answer
  • A customer in Lowe's needs help. Matt works in shipping and receiving. It isn't Matt job to work with the customer, but he knows
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!