Presentation is loading. Please wait.

Presentation is loading. Please wait.

LO: We’re learning to outline a program using Pseudo Code.

Similar presentations


Presentation on theme: "LO: We’re learning to outline a program using Pseudo Code."— Presentation transcript:

1

2 LO: We’re learning to outline a program using Pseudo Code

3  You are required to plan out the code for your game using Pseudo Code  Remember the requirements for your game!:  It must be fun  It must be educational  It must allow the user to interact with the screen  It should include scoring elements  It should include sounds  Include information about your school.

4 Definition: - An outline of a program, written in a form that can easily be converted into real programming statements. Pseudo Cannot be compiled or ran…. There isn’t any syntax or rules It allows you concentrate on algorithms You can write it without ever knowing code

5 Verb used: Print  used when the output is to be sent to the printer Write  used when the output is to be written to a file Put, Output, Display  used when the output is to be written to the screen Prompt  required before an input instruction Get, causes the message to be sent to the screen which requires the user responds, usually by providing input. Print `Program Completed´ Write customer record to master file Put out name, address and postcode Output total_tax Display ´End of data´ Prompt for student_mark Get student_mark

6 Verb used: IF > Test if something has happened or not THEN > IF the test is true then.... ELSE > Otherwise do this.... IF student_attendance_status is part_time THEN add 1 to part_time_count ELSE Add 1 to full_time_count ENDIF

7  Task 1 : - Pseudo Code Basics  Using the worksheet1 write some examples of Pseudo code such as drawing a house.  Using worksheet2 underline anything which you might see as a variable.

8  Task 2 : -  You are required to pick out some of your screens from your game (previously designed)  Once you have picked out the screens, you’re required to develop Pseudo code for them. Use variables like the examples.

9 Set run to false Set overlay to create a board using the height and width. Change the colour of overlay to transparent. Make some text which is 20 by 40 using the text Game Over Check variable I 50 times. set the background darker by 0.2 update the board


Download ppt "LO: We’re learning to outline a program using Pseudo Code."

Similar presentations


Ads by Google