Flowchart Facts and Programming in Python.


Google Drawing and Word Drawing, Gliffy and Creatly can be used to create generic flowcharts.

We looked at the Average Calculator in Python.

Flowcharts Basic Symbols.

Start 

Decision

 



Data

 


Process

 



Document

 

 

Pre-defined Process

 


 

We then created an average calculator flowchart.

Average Calculator Flow Chart 

Average Calculator Python (Array and non array versions)

i=0
c=0
t=0

#while i !="999":
#    i = input("Enter numbers or '999' to finish:")
#    if i!="999":
#        c+=1
#        t=t+float(i)

#ave= t/c
#print("Total = ",i)
#print ("Average%5.2f"%ave)

#Average number calulator
#declare array
num_array = list()
# enter number of numbers to average

 

while i !="999":
i = input("Enter numbers into array:")
if i!="999":
c+=1
num_array.append(int(i))
print ("ARRAY: ",num_array)

#add up the numbers in the array.
average = sum(num_array)
#declare num as a float.
#number=float(num)
#divide average by number.
mean = average/c
#Show total of array.
print ("Array:",num_array)
#show average of array.
print ("Average of numbers:",mean)
print("Thank you and goodnight")