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]
2 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]2 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
Employees keep track of their worked schedule on a _____. task time sheet salary work shift
Kay [80]
Timesheet.

Bane of my existence. 
6 0
3 years ago
Read 2 more answers
You have the opportunity to meet some droids and Wookies!
scZoUnD [109]

Answer:

name = input("Enter name: ")

droids = int(input("How many droids you want to meet? "))

wookies = int(input("How many Wookies you want to meet? "))

   

print(name + " wants to meet " + str(droids) + " droids, and " + str(wookies) + " Wookies")

Explanation:

*The code is in Python.

Ask the user to enter the name, number of the droids and number of the Wookies

Print the name, number of the droids, and number of the Wookies

Note that while getting the input for the droids and wookies, you need to typecast the input the int (Since the values are int). Also, to print these variables, you need to typecast them as string in that format.

5 0
3 years ago
Specifically, you will write two policies to ensure web server software and web browsers are secure. Your policy statements will
erik [133]

Answer:

Navigate to Prohibit Software from the Inventory tab. This will list the details of all the software that are already prohibited.

Click Add Prohibited Software. This will open the Add Prohibited Software dialog listing all the software detected in the managed computers. You should have scanned the Windows systems at least once to have the details of the software here.

Select the software that you wish to prohibit and move them to Prohibited List.

Note: In case you have grouped certain software and you are adding that Software

4 0
2 years ago
Imagine that you are helping a customer needing technical assistance for a printer they recently purchased. They bought the prin
Lisa [10]
If you happen to meet that kind of problem, the most appropriate series of steps to take in troubleshooting the issue is that first, are there steps that i haven't done? If there's no power even if it is plugged in, try to check the wire. Look for a different wire cable and connect it to your printer. If it still does not work, then check it over to the service center.
3 0
3 years ago
Read 2 more answers
Media and social control
Fofino [41]

Answer:

Media:

the main means of mass communication (broadcasting, publishing, and the Internet) regarded collectively.

Social control:

Social control is a concept within the disciplines of the social sciences.

Social control is the study of the mechanisms, in the form of patterns of pressure, through which society maintains social order and cohesion. ... Regardless of its source, the goal of social control is to maintain conformity to established norms and rules.

5 0
3 years ago
Other questions:
  • SI TENGO: ¿R = 255, G0 =, B = 0, QUE COLOR OBTENGO?
    14·1 answer
  • What is the main difference between a literacy society and a digital Society
    9·1 answer
  • The primary key is a field that uniquely and completely identifies a record.
    14·2 answers
  • Write a function called first_last that takes a single parameter, seq, a sequence. first_last should return a tuple of length 2,wh
    14·1 answer
  • For which type of long-distance call do you need to tell the operator the name of the person to whom you wish to speak?
    10·1 answer
  • Which text features does this section contain? Check all that apply.
    15·1 answer
  • Was just testing how this works, no actual question; feel free to take the points anyways though. ​
    13·1 answer
  • can somebody tell me what straykids 2021 collab is gonna be with because i think its gonna be with blackpink
    9·2 answers
  • To what extent do you agree with the assertion that “Collection development begins with community analysis”. (Give reasons to bu
    7·1 answer
  • 30 POINTS FOT THE ANSWER FAST
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!