# Computer - Programming

Please how do I compute an algorithm to compute the sum of n integers starting with the K^th integer.

Thanks

A:=0

For i = k to n

Do

Begin

A:= A + i

End

1. 👍 0
2. 👎 0
3. 👁 120

## Similar Questions

1. ### Math

The product of three consecutive odd integers reduced by 23 is 99 less than the cube of the sum of the smallest number and 2. Compute the mean of the three integers.

asked by Theo on May 27, 2011
2. ### programming

Ancient square root algorithm. The Babylonian algorithm to compute the square root of a number n is as follows:      1. Make a guess at the answer (you can pick n/2 as your initial guess).      2. Compute r = n / guess

asked by aymee on February 23, 2012
3. ### statistics

Suppose that you are given a decision situation with three possible state of nature: s1, s2, and s3. The prior probabilities are P(s1) =.1, P(s2) = .6, and P(s3) = .3. With sample information I, P(I|s1) =.15, P(I|s2) = .2, and

asked by felicia on June 27, 2010
4. ### statistics

All deal with a random variable X that follows a normal probability distribution with mean equal to 37 and a standard deviation of 5. Compute P(X < 39) Compute P(X < 29 or X > 41) Compute P(X > 30) Find the 42nd percentile for

asked by luke on April 25, 2013
5. ### statistics

All deal with a random variable X that follows a normal probability distribution with mean equal to 37 and a standard deviation of 5. Compute P(X < 39) Compute P(X < 29 or X > 41) Compute P(X > 30) Find the 42nd percentile for

asked by luke on April 25, 2013
6. ### Calculus

Using f(x), determine a formula for the Riemann Sum S_n obtained by dividing the interval [0, 4] into n equal sub-intervals and using the right-hand endpoint for each c_k. f(x)= 5x+2 Now compute the limit as n goes to infinity S_n

asked by Dee on April 7, 2014
7. ### computer science

Algorithm for Binomial Numbers Task Binomial numbers (or binomial coefficients) are important positive integers that arise frequently in computing and mathematics. A function to compute binomial coefficients will have two inputs:

asked by Gurv on November 29, 2006
8. ### math

The weights (in pounds) of a sample of five boxes being sent by UPS are: 12, 6, 7, 3, and 10. a. Compute the range. b. Compute the mean deviation. c. Compute the standard deviation.

asked by Dan on January 9, 2009
9. ### math

There are five questions on the section. These questions are for you to demonstrate your understanding of the steps related to the contents you studied this week. To earn any points in part two, you must show the steps you have

asked by harmony on August 16, 2010
10. ### Investments Analysis

Can anyone help with ANY of these? Any good starting points would be great! Alpha (STI) 0.90 2008 Return(STI) 15% Beta(STI) 1.20 2008 Return(INX) 10% R_squared 36% Risk Free Rate 4% Variance(STI) .1296 b. What is the relative

asked by James on March 6, 2010

More Similar Questions