Design an algorithm which generates even numbers between 1000 and 2000, print them in the standard output and gives the total sum of all the even numbers. Represent your algorithm with a corresponding pseudocode and a flowchart

Respuesta :

Algorithms are simply the methods and procedures to solve a problem

  • They can be in graphical form (i.e. flowcharts)
  • They can also be in form of texts (i.e. pseudocodes)
  • Algorithms do not conform to programming rules, and they do not have definite syntax.

The pseudocode that represents the required algorithm is as follows:

Sum = 0

For even = 1000 to 2000 step = 2

   print even

   sum = sum + even

print sum

  • The first line of the pseudocode intializes sum to 0
  • The next line iterates through even numbers between 1000 and 2000
  • Within the iteration, the even numbers are printed and the sum is calculated
  • After the iteration, the sum of even numbers is printed
  • The last line ends the pseudocode

The above explanation is also applicable to the flowchart (see attachment)

Read more about algorithms, flowchart and pseudocode at:

https://brainly.com/question/21220060

Ver imagen MrRoyal
RELAXING NOICE
Relax