RSS

Monthly Archives: June 2011

What i learnt in higher computing this week…

This week in computing we mainly focused on programming. In programming there are global and local variables. A global variable is a variable which is recognised throughout all pieces of program code (i.e. if there’s more than one push button in the program). where as a local variable is only recognised within one part of a program code. there are different types of variables in programming but the two main ones used are string and integer. A string variable is a way to store letters in a program (i.e. entering your name would require the specific field to be declared as a string variable). An integer variable is a way to store whole numbers (1,2,3,4 etc) into a program. we also learnt about variable scope. Variable scope is the range that a specific variable is known throughout a program. The final thing we learnt about was something called random number generation. This is a pre-defined function that allows the programmer to request the computer to generate a random number from a specific range of numbers. For example maybe the programmer only wants the computer to pick a number within the range of 1 to 5.

Advertisements
 
 

Hello world!

Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post.

Here are some suggestions for your first post.

  1. You can find new ideas for what to blog about by reading the Daily Post.
  2. Add PressThis to your browser. It creates a new blog post for you about any interesting  page you read on the web.
  3. Make some changes to this page, and then hit preview on the right. You can alway preview any post or edit you before you share it to the world.