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
Vladimir [108]
3 years ago
6

Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and a

ssociates that value with total. Thus your code should associate 11 22 33 ... 4949 50*50 with total. Use no variables other than k and total.
Computers and Technology
1 answer:
Tems11 [23]3 years ago
3 0

Answer:

total = 0

k = 1

while k <= 50:

total += k**2

k += 1

print(total)

Explanation:

Note: There some errors in the question. The correct complete question is therefore provided before answering the question as follows:

Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and associates that value with total. Thus your code should associate 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 with total. Use no variables other than k and total.

The answer is now explained as follows:

# Initialize k which is the number of term

k = 1

# Initialize total which is the sum of squares

total = 0

# Loop as long as k is less than or equal to 50.

while (k <= 50):

# Add the square of k to total in order to increase it

total = total + k * k

# Increase the value of k by one.

k += 1

# Finally, output total

print (total)

You might be interested in
Salesforce organizes your data into: A. Objects and records, like tabs and rows on a spreadsheet. B. Objects and fields, like co
pshichka [43]

Salesforce organizes your data into option A. Objects and records, like tabs and rows on a spreadsheet.

<h3>How does Salesforce organize data?</h3>

Salesforce is known to be a tool that helps one to put together their your into objects and records and it is said to have standard objects that has been set up and ready for use.

Hence, Salesforce organizes your data into option A. Objects and records, like tabs and rows on a spreadsheet.

Learn more about Salesforce from

brainly.com/question/7452075

#SPJ1

7 0
2 years ago
The file extensions .webm, .m4v, and .ogv are used for:
Angelina_Jolie [31]
Audio and video files
5 0
3 years ago
Using a Microsoft Windows system, open Internet Explorer. Click Internet Options on the Tools menu. Examine the contents of the
Novay_Z [31]

Answer:

You can restrict a user’s Internet Explorer web access by modifying the "Family" settings.

A) Content filtering tab in the Microsoft Windows Tab

From the left-hand navigation menu, select Settings > General > Advanced Features. Scroll down until you see the entry for Web content filtering. Switch the toggle to On and Save preferences.

B) to activate protection from unwanted items like cookies?

Open Internet Options | Privacy, click on the Advanced button. Place a check in "Override automatic cookie handling". Set "First Party Cookies" to Block, set "Third Party Cookies" to Block.

Cheers!

3 0
4 years ago
What tool should you use to extend network services beyond the demarc.
ladessa [460]

Punchdown tool is the tool should you use to extend network services beyond the demarc.

<h3>What is a punchdown tool?</h3>

The punch down tools are known to be set of tools that one can use to stop wires into punch down patch panels and bring down keystone jacks.

Note that a tool head blade is often employed  to push a wire conductor into a IDC terminal slot and as such this Punchdown tool can help you to extend network services beyond the demarc.

Learn more about network services  from

brainly.com/question/3521925

3 0
2 years ago
Write c++ program to find maximum number for three variables using statement ?
Anastaziya [24]
The variable 10 ~ 810 would equal off to 10 leaving 40 left over..
5 0
3 years ago
Read 2 more answers
Other questions:
  • Jake is preparing his resume. He is applying for the position of iOS application developer at a large software company. He wants
    6·1 answer
  • If the mine winch drum diameter is 6M, how far will the counterweight lift for each single rotation of the drum
    11·1 answer
  • What is the meaning of the title Two Kinds Of Stupid whose fault is it that Eduardo got in trouble
    8·1 answer
  • Write a program in java using switch case statement
    11·1 answer
  • You decide to store data in the user's browser in order to reduce the amount of data that must be downloaded. What is this proce
    11·1 answer
  • Portrait and Landscape are
    13·1 answer
  • In design and implementation of any _____ reasoning application, there are 4 Rs involved: retrieve, reuse, revise, and retain.
    7·1 answer
  • Pls help me thx would really help me
    9·2 answers
  • With social media presence growing why is cyberbullying at an all time high
    8·2 answers
  • The software that requests mail delivery from the mail server to an Internet device is known as mail ____ software.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!