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.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments