Question

Develop the pseudocode and the flowchart for a program that finds the sum of 5 numbers.

  1. Develop the pseudocode and the flowchart for a program that finds the sum of 5 numbers.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Aim: To find the sum of five numbers

So we take two variables
sum - store the result
count- will keep track of how many numbers we have added so far
we use loop concept
intialize result and sum to zero
repeat loop five times and correspondinlgy
add five numbers to sum


Pseudocode:

// input: sum and count

//output: display final value of sum

//procedure
i) intialize sum=0 and count=0
ii) read n
iii) find sum+n and increment count by 1
iv) check for count condition
check<5?
if yes goto step 2
else
print sum

Flowchart:


Add a comment
Know the answer?
Add Answer to:
Develop the pseudocode and the flowchart for a program that finds the sum of 5 numbers.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT