how to write algorithm and pseudocode and how to draw flowchart add the number from 1 to 100 and display the sum

Algorithm:

1. Set sum to 0
2. For i from 1 to 100 do:
a. Add i to sum
3. Output sum

Pseudocode:

sum = 0
for i = 1 to 100 do
sum = sum + i
end for
output sum

Flowchart:

[Start] -> [sum = 0] -> [i = 1] -> [sum = sum + i] -> [i = 2] -> [sum = sum + i] -> ... -> [i = 100] -> [sum = sum + i] -> [Output sum] -> [End]

To write an algorithm, pseudocode, and draw a flowchart for adding numbers from 1 to 100 and displaying the sum, you can follow the steps below:

Algorithm:
1. Start
2. Initialize a variable "sum" to 0.
3. Loop through numbers from 1 to 100.
a. Add the current number to the sum.
4. Display the sum.
5. End

Pseudocode:
```
start
sum = 0
for i = 1 to 100
sum = sum + i
display sum
end
```

Flowchart:
---------------
+--------------------+
| START |
+--------------------+
|
v
+--------------------+
| sum = 0 |
+--------------------+
|
v
+--------------------+
| for i = 1 to 100 |
+--------------------+
|
v
+--------------------+
| sum = sum + i |
+--------------------+
|
v
+------+-----------------+
| i > 100? |
+------+-----------------+
|
v
+------+-----------------+
| DISPLAY sum |
+------+-----------------+
|
v
+--------------------+
| END |
+--------------------+

Note: In the flowchart, the diamond-shaped symbol represents a decision point, where we check if i is greater than 100. If it is True, we display the sum and move to the End block. If it is False, we update the sum and continue the loop.