Computer - Programming

posted by .

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



For i = k to n



A:= A + i


Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. 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: n …
  2. C Programming

    I am trying to find the sum of two integers. I entered the following program into the Visual Studio and it is telling me that there are errors. Can someone tell me where they are please?
  3. 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      3. …
  4. programming MIPS ask

    Write a MIPS assembly language program that will cover the following steps: Prompt the user to enter a first integer named i1 Prompt the user to enter a second integer named i2 Compute i1+i2-200 Print the value of the result Repeat …
  5. programming

    Write an algorithm to compute average score for each student in the Computer Science Continuous assessment test. Assume each student sat for ten courses for the semester
  6. Programming

    Write a function that takes one positive integer value (call it n) as a parameter and produces the sum of the integers between 1 and n. Hint: The sum of the integers from 1 to n is n*(n+1) all over 2 I know this is how the function …
  7. computer programming

    Write a fortran program to compute the geometric information for a kite. The program should read the a, c and p lengths and compute the q length
  8. Algorithm

    Pkease who can help? I need to know a pseudocode to display the first n positive integers given n from the user. here is what i tried PROMPT “Please enter n” GET n IF n==1 then DISPLAY “1” WHILE n>1 COMPUTE intiger=n-(n-1)
  9. Computer Science/Pseudo Code Python

    Hi, I'm confused about an assignment. I'm not sure what to do and would like some help. An example: Write a program that obtains two integer numbers from the user. It will print out the sum of those numbers. Pseudo code: Prompt user …
  10. computer programming

    given three numbers A,B,C. draw a flowchart to compute and print out the sum, average and the product of these values.

More Similar Questions