Answer to Question #24856 in Python for Nick Gentile

Question #24856
Write a program to find the average of the numbers 1,2,3,4,5,6,7,8,9,10, and print out the result.
You must use a FOR loop to generate and sum the series of numbers. (In other words, a statement like 1+2+3+4..., also a while loop is not acceptable)
You must include:
___ 1) The proper comments (Your Name, Program Name, Purpose), as discussed in class.
___ 2) Comments after each line of code, on the same line
___ 3) The use of a for loop to sum all the numbers
___ 4) Find the average
___ 5) Print out the result as a decimal number, formatted with TWO digits after the decimal point.
Expert's answer

Not answered

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!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog