90 likes | 409 Views
LO: We’re learning to outline a program using Pseudo Code. Learning Objective. 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
E N D
LO: We’re learning to outline a program using Pseudo Code Learning Objective
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. Setting the scene….
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 What is Pseudo Code?
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. Example of a computer printing information 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
Verb used: IF > Test if something has happened or not THEN > IF the test is true then.... ELSE > Otherwise do this.... Example of attendance program IF student_attendance_status is part_time THEN add 1 to part_time_count ELSE Add 1 to full_time_count ENDIF
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. Planning / Scenario
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. Usevariables like the examples. Pseudo Code for game
Actual Code / Pseudo Code 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