matt_mods

loops and pusdeocode

Jan 29th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. pusdeo code loops:
  2. while
  3.  
  4. until
  5. condition
  6.  
  7. for
  8.  
  9.  
  10. end
  11.  
  12. repeat
  13.  
  14.  
  15. ?????
  16.  
  17. until
  18. condition
  19.  
  20. foreach
  21. do some stuff here
  22. until
  23. condition
  24.  
  25.  
  26. /*Tanya is creating a 2D computer game. The user drives a taxi around the screen.
  27. success is measured by how much money has been earned and how few penalty points
  28. have been added to the driving licence.
  29. Variables are used to hold both of these quantities.
  30.  
  31. Q: Identify three variables features of the game proposal,
  32. other then licence points,
  33. that would be represented as a variable*/
  34. //variables that can be used for the taxi game
  35. //main 3 variables
  36. // $ = variable
  37. money = $
  38. x axis = $
  39. Y axis = $
  40.  
  41. //extra
  42. user = $
  43. detestation = $
  44. speed = $
  45. win = bool (win/loose) = $
  46.  
  47. abstraction
  48.  
  49. pattern spotting
  50.  
  51. error detection
  52.  
  53. database
  54. varibles - changes
  55. const - stays the same
  56. input - user vaidation
  57. output - display to the user
Add Comment
Please, Sign In to add comment