Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Techniques

Similar presentations


Presentation on theme: "Programming Techniques"— Presentation transcript:

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

2 What is sequencing? 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. 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). Starter activity 1. Read the article. 2. Try out the simulator. 3. How has sequencing applied here?

3 Task Create a set of steps to draw the following shapes:
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, 60 Triangle with side 60 x 80 x 100 How efficient is it just using a sequence of steps? Starter activity What the advantages and disadvantages of sequencing?

4 Answers Advantages Disadvantages 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 Starter activity

5 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. A=(45-23*12)/(78*( )) Given this mathematical expression, how can we break it a sequence of simple steps? Remember: Brackets, Multiplication/Division, Addition/Subtraction Starter activity


Download ppt "Programming Techniques"

Similar presentations


Ads by Google