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
3241004551 [841]
3 years ago
8

Assume there is a variable, h already associated with a positive integer value. write the code necessary to compute the sum of t

he first h perfect squares, starting with 1. (a perfect square is an integer like 9, 16, 25, 36 that is equal to the square of another integer (in this case 3*3, 4*4, 5*5, 6*6 respectively).) associate the sum you compute with the variable q. for example, if h is 4, you would assign 30 to q because the first 4 perfect squares (starting with 1) are: 1, 4, 9, 16 and 30==1+4+9+16. submit
Mathematics
1 answer:
ludmilkaskok [199]3 years ago
8 0
Let q be the variable to be computed associated with h. the code is given below as  
q=0 / initial value assigned is 0 
for i in range(1,h+1): / for loop is formatted with range 1 t0 h+1 
q+=i**2 / sum q is computed as square of i
You might be interested in
Evaluate 2xy<br> when x=−14<br> and y=3<br> .<br> The value of the expression is =
kondor19780726 [428]

9514 1404 393

Answer:

  -84

Step-by-step explanation:

Put the values where the variables are and do the arithmetic.

  2xy = 2(-14)(3) = -84

5 0
3 years ago
Show work and answer .............
Lelechka [254]

Answer:

1. 5

2. 5

3. -3

4.y= -1

5. 5

Step-by-step explanation:

1.)x- 2y= -25 ; y=3x

x-2(3x)=(-25)

x-6x=(-25) ; -5x=(-25) ; x=5

2.) 5x+3y =40; x=y

8y=40; y=5

3.) 4x-3y= -27; x=3y

4(3y)-3y= -27; 12y-3y=-27; 9y=-27; y=-3

4.)x-y=9; x=-8y; -8y-y=9; -9y=9; y=-1

5.) 2x+2y=30; y=2x ; 2x+2(2x)=30; 6x=30; x=5

8 0
3 years ago
Write 492,053 in words form
umka21 [38]
Four Hundred Ninety two thousand Fifty Three.
6 0
4 years ago
Read 2 more answers
Alan bowls one game, which consists of 10 frames. The number of pins he knocked down in each frame is 5, 6, 7, 5, 7, 9, 2, 4, 8,
mote1985 [20]
Alan shoud use mean and range, mean is where you add all of the numbers up and divide by how many numbers there are, and range where you take the highest number and subtract it by the lowest number. This way he will find the greatest and least number of pins he knocked down 
7 0
3 years ago
Read 2 more answers
Order the expressions from least to greatest. √63 √50 √49
balandron [24]

1st √49=7

2nd√50=7.07

3rd√63=7.94 (rounded)

4 0
3 years ago
Read 2 more answers
Other questions:
  • Ray pay $812 to rent music equipment that costs $28 per hour. How many hours did he have the equipment?
    6·2 answers
  • There are 24 red cars. That is three-quarters of the cars. How many cars are there altogether?
    11·1 answer
  • 8/x2+6x times 2x product
    8·1 answer
  • 3. At the mission museum Mrs. Perez visited over break, there is a pond like the one below that has a ring-shaped sidewalk aroun
    7·1 answer
  • If a number ends in zero, then it is divisible by five
    7·2 answers
  • charles works on the 12th floor of an office building . he went to lunch at the cafeteria on the 4th floor . How many floors did
    6·2 answers
  • What is the pre-image of vertes. A' if the image shown on
    8·1 answer
  • Hiiii pls help i’ll give brainliest if you give me a correct answer ty!
    5·2 answers
  • Samantha, Brooklyn, and Mary went to Bonnaroo music festival where they each attended various
    13·1 answer
  • Correct answer gets brainiest
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!