Keywords Sequencealgorithm Instructions Efficiency Structured Programming Techniques Sequence





- Slides: 5

Keywords Sequence/algorithm, Instructions, Efficiency, Structured Programming Techniques Sequence

What is sequencing? Objectives BEGINNER: Be able to break a complex task into a sequence of simple steps. Sequencing allows a programmer to solve complex tasks through a number of simple steps. The order of steps in most tasks matters – similarly, we use brackets in maths to make sure that certain operations are done before others (sometimes we need to add before we do multiplication and division). ADVANCED: Understand that the order of steps in algorithms matters. EXPERT: Make use of flowcharts and pseudo codes to solve sequencing problems. 1. Read the article. 2. Try out the simulator. 3. How has sequencing applied here?

Task Objectives BEGINNER: Be able to break a complex task into a sequence of simple steps. ADVANCED: Understand that the order of steps in algorithms matters. EXPERT: Make use of flowcharts and pseudo codes to solve sequencing problems. Create a set of steps to draw the following shapes: Square of 50 x 50 Rectangle of 50 x 100 Triangle with sides of 60, 60 Triangle with side 60 x 80 x 100 How efficient is it just using a sequence of steps? What the advantages and disadvantages of sequencing?

Answers Objectives BEGINNER: Be able to break a complex task into a sequence of simple steps. ADVANCED: Understand that the order of steps in algorithms matters. EXPERT: Make use of flowcharts and pseudo codes to solve sequencing problems. Advantages Disadvantages Each line follows the next, Create simple programs very quickly, Easy to follow for a small program, Fundamental principal of a program, Starts at the top, finishes at the bottom! Not at all efficient, Becomes very difficult to follow with large programs, Extremely hard to maintain

Complex Task A=(45 -23*12)/(78*(56 -89+23)) Objectives BEGINNER: Be able to break a complex task into a sequence of simple steps. ADVANCED: Understand that the order of steps in algorithms matters. EXPERT: Make use of flowcharts and pseudo codes to solve sequencing problems. Given this mathematical expression, how can we break it a sequence of simple steps? Remember: Brackets, Multiplication/Division, Addition/Subtraction