Write a pseudo code + Draw Flowchart that calculates the average of 3 numbers.
Question
Write a pseudo code + Draw Flowchart that calculates the average of 3 numbers.
Solution
Sure, here is the pseudo code for calculating the average of 3 numbers:
1. Start
2. Declare variables num1, num2, num3, and average.
3. Read values for num1, num2, num3.
4. Calculate average = (num1 + num2 + num3) / 3.
5. Print average.
6. End
And here is a simple description of the flowchart:
- Start
- Declare variables (num1, num2, num3, average)
- Input num1
- Input num2
- Input num3
- Calculate average = (num1 + num2 + num3) / 3
- Output average
- End
Unfortunately, I can't draw a flowchart here, but you can easily create one based on the steps above using any flowchart software or even on paper. The flowchart would start with a Start symbol, then follow the steps in the pseudo code, each step being a rectangle (process) or parallelogram (input/output), and finally end with an End symbol. The arrows would show the flow of the process.
Similar Questions
Write a pseudo code + Draw Flowchart that find the biggest of three (3) Numbers
Draw a flowchart to find smallest of the three numbers entered by User
Draw a flowchart to calculate Sum = 1+2+3+...+n
Flowchart for finding the greatest of three numbers in python
Write an algorithm and draw a flowchart to calculate SimpleInterest.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.