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
L’Oreal, a manufacturer of personal care and beauty products, has a focus on sustainability. It has developed eco-packaging, eli
Scorpion4ik [409]

Answer:

The Environment

Explanation:

Our environment is gravely under attack from the release of harmful substances by manufacturing companies in products or waste extracts.

L'Oreal is addressing the issue of the environment, by reducing the release of greenhouse gas and waste that has harmful effects on the environment.

Corporate Social Responsibility (CSR) is aimed at increasing the accountability of corporate organizations when handling socially-related activities.

Some CSR issues include Working conditions, Human rights, Corruption, Taxes, Gender Equality, Consumer rights and interest among others.

7 0
3 years ago
1) which colour filter is used to pumps up black and white effects?
LuckyWell [14K]

1.c) pluto

2. a)compare

3.b) crop

5 0
4 years ago
Which internetworking device makes computers that are connected to separate segments appear and behave as if they're on the same
Temka [501]

NIC Ports use which RJ connector? RJ-45 internetworking device makes computers that are connected to separate segments appear and behave as if they're on the same segment.

There's a lot of confusion out there about which NIC ports use which RJ connectors. RJ-45 internetworking devices make computers that are connected to separate segments appear and behave as if they're on the same segment. So, which one do you use?

The answer is actually quite simple. If you're connecting two computers together, you'll need to use an RJ-45 cable. If you're connecting a computer to a modem or router, you'll need to use an RJ-11 cable.

RJ-45 cables are actually quite common and can be found at most electronics stores. If you're not sure which one you need, just ask a sales associate for help.

Learn more on internetworking device here:

brainly.com/question/28342757

#SPJ4

3 0
2 years ago
In an array list the time complexity of the remove function is identical to the time complexity of the ____ function.
yaroslaw [1]

Answer:

C. is Full

Explanation:

In an array list the time complexity of the remove function is identical to the time complexity of the ''isFull'' function.

3 0
4 years ago
Read 2 more answers
True or False <br><br> MAC addresses are assigned by the router along with your IP address.
Oduvanchick [21]
True. If you look at the router it will correspond with your MAC address
4 0
3 years ago
Other questions:
  • For example, sumDigits(234) returns 9 (= 2 + 3 + 4). (Hint: Use the % operator to extract digits and the / operator to remove th
    15·1 answer
  • Choose the false statement below. The content that displays in the browser is contained in the head section. The content that di
    14·1 answer
  • Each brochure template produces _____ pages of graphics, business information text boxes, and story boxes.
    15·1 answer
  • The underline format will underline what?
    9·2 answers
  • Which description of the plain text file format is most accurate?
    10·1 answer
  • Assuming x and y are variables of type float, the expression:
    6·1 answer
  • SOMEONE HELP PLEASE!!!!!
    6·1 answer
  • What is a task that is not associated with loading existing data into a new ERP system.
    11·2 answers
  • PLSS HELP ASAP ILL GIVE BRAINLIEST THANKS
    15·2 answers
  • I'm doing a VHDL program in Vivado, using a zyboz7 20, which would have 2 teams, each of them with different buttons and led lig
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!