Q. To accept numbers till the user enters and then find their average.
Answer :-
Algorithm :-
1. Start
2. Sum = 0
3. Count = 0
4. While True
Input number
Sum += number
Count += 1
Input choice to quit enter yes
If choice == yes
Break
5. Average = Sum / count
6. Print average
7. Stop
Pseudocode :-
Sum = 0
Count = 0
While True
N = input "Number "
Sum is equal to sum + number
Count is equal to count + number
Choice = input "to quit enter quit"
If choice is equal to quit
Break
Average = sum / count
Display Average
Flow Chart :-
Click on image for clear view.
Image of flowchart is blur and when I click it, it doesn't loads, it gets transparence black screen with a exit cross. Please fix it
ReplyDeletePlease open image in new window.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )