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)
Answer:
Encryption technology helps provide secure transmission of information along the Internet by encoding the transmitted data
Answer:
The correct option to the following question is A.).
Explanation:
The following statement is false because,
- We cannot use as the type-name throughout the function's body.
- That's why the Wildcard type argument is referred to as the unknown types arguments and it acts as the placeholders for a real argument that are pass during the calling of the function.
- A wildcard arguments are denoted by the Question mark(?).
Answer:
B. once a VB.NET project is created in the Microsoft Visual Studio environment.
Explanation:
Visual Basic . Net is a programming language which is used to run complex software and projects. The VB projects which are created in Microsoft Visual Studio are run by console application. These computer applications run complex and technical software.
Answer:
face book is an interactive website, because you can interact with the content such as give a like or comment.