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
abruzzese [7]
3 years ago
5

Use two variables k and total to write a for loop to compute the sum of the squares of the first 50 counting numbers, and store

this value in total. thus, your code should put 1*1 2*2 3*3 ... 49*49 50*50 into total. use no variables other than k and total.
Mathematics
1 answer:
ohaa [14]3 years ago
8 0
I think the question means to "accumulate" or "sum" the individual squares in total.   "Store" in computer terms usually means overwriting what's already in total.

With the sens of "summing" or "accumulating", this is one way how it can be coded:

int total=0;
for k=1 to 50 {
    total+=k^2;
};
print(total);
You might be interested in
What is the missing length???
Kaylis [27]

Answer:

25

Step-by-step explanation:

144/60 = 2.4

60/2.4 = x

x = 25

8 0
3 years ago
What's the surface area of the square pyramid?? <br><br> Please someone answer fast
Eddi Din [679]

Answer:

33

Step-by-step explanation:

The base/square:

3*3 = 9

The sides:

(3*4)/2 = 6

4 sides:

6*4 = 24

Total:

24+9=33

8 0
3 years ago
in 2010 the population of rhode island was approximately 1053000. if the population decrease was 0.3% find the population of rho
maks197457 [2]
1049841 1053000x.003=3159 1053000-3159=1049841
4 0
3 years ago
Ed wants to buy a new video game system which costs $250. he has
BARSIC [14]

The required equation is <u>135 + 9x > 250</u>.

The number of lawns Ed must mow is assumed to be x.

The amount Ed charges for each lawn he mows is $9.

Thus, the total amount Ed earns by mowing x lawns = $9x.

The savings which Ed has is $135.

Thus, the total amount Ed will have to spend can be written as the expression, $(135 + 9x).

The cost of the video game is given to be $250.

We are asked to write an equation, that can be used to find the number of lawns Ed mow, that is x so that the amount Ed has will be more than the amount he needs to buy the video game.

This can be shown as the equation:

Total amount Ed has > Cost of the video game,

or, 135 + 9x > 250.

Thus, the required equation is <u>135 + 9x > 250</u>.

Learn more about writing equations at

brainly.com/question/25235995

#SPJ1

3 0
2 years ago
The length of a rectangle is 3 ft more than twice the width, and the area of the rectangle is 54 ft2. find the dimensions of the
andrew-mc [135]
A = L * W
A = 54
L = 2W + 3

54 = W(2W + 3)
54 = 2W^2 + 3W
2W^2 + 3W - 54 = 0
(2W - 9)(W + 6) = 0

2W - 9 = 0
2W = 9
W = 9/2
W = 4.5 <== width

W + 6 = 0
W = -6....it wont be this one because it is negative

L = 2W + 3
L = 2(4.5) + 3
L = 9 + 3
L = 12 <==length
4 0
4 years ago
Other questions:
  • Name three pairs of numbers that have 5 as their greatest common factor. Use each number only once in your answer.
    14·1 answer
  • Identify the two prime numbers that are greater than 25 and less than 35
    8·1 answer
  • Hey can you please help me posted picture of question
    10·1 answer
  • If a cone's height and radius are tripled, what happens to the volume?
    14·1 answer
  • Movies are on sale for 1414 the original price. If the original price is $20, which expression gives the sale price?
    14·1 answer
  • 4 cups equals how many ounces
    12·2 answers
  • What is the reference angle for the angle with measure −π4?
    14·2 answers
  • Fine the slope<br> Pls someone help me im trying to get a 100 for my hw ❤️
    10·2 answers
  • Can someone pls pls help me on this question !!!!!
    7·1 answer
  • What is this answer Y= 3x - 4
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!