miércoles, 19 de febrero de 2014

How to get the number of heartbeats of a person?


Outline

Get: The sex             s

Processing: If s=f (220-a)/10, if s=m (210-a)/10

Output: The hearth beats during 10 seconds of aerobic exercise.

Algorithm


1.    Start

 

 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
2.    Get the sex of the person              s
 
 
 
 
 

 
 
 
 
 
 



3.    If s=f
 
 
 
 
 

 
 
 
 
 
 
 
            
 
 
 
 
 
 
 
 
 
 
 
 
 


4.    If true,
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


5.    Get age         a
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 


6.    (220-a)/10
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


7.    Display
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


8.    If false,
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


9.    Get age         a
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 


10. (210-a)/10
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


11. Display
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


12. End
 


 
 
 
 
 
 
 
 
 
 
 
Flowchart