Flowchart and pseudocode algorithms using sequence and selection