Algorithm:
1. Ask the user to enter three numbers.
2. Read the three numbers entered by the user.
3. Calculate the sum of the three numbers.
4. Calculate the average of the three numbers.
5. Determine the maximum number of the three.
6. Determine the minimum number of the three.
7. Display the sum, average, maximum, and minimum values.
Pseudocode:
1. Prompt the user to enter three numbers.
2. Read the three numbers.
3. Set sum = number1 + number2 + number3
4. Set average = sum / 3
5. Set maximum = max(number1, number2, number3)
6. Set minimum = min(number1, number2, number3)
7. Display sum, average, maximum, and minimum.
Flowchart:
[Start] -> [Prompt user to enter three numbers] -> [Read numbers] -> [Calculate sum] -> [Calculate average] -> [Determine maximum] -> [Determine minimum] -> [Display sum, average, maximum, and minimum] -> [End]
how to write algorithm and pseudocode how to draw flowchart to find the average max min and sum of three numbers given by the user
1 answer