1 / 9

Learning Objective

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

bayard
Download Presentation

Learning Objective

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. 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….

  3. 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?

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

More Related