Answer to Question #35568 in Python for Caroline Kearns

Question #35568
Assume there is a variable , h already associated with a positive integer value. Write the code necessary to compute the sum of the 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 .
1
Expert's answer
2013-10-02T08:04:28-0400
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-35568.pdf

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS