Beginner Programming Tips
Reference > Science > Technology![](/images/teachers/g10/equation.png?x=5)
Toggling a variable between two values in a computer program; switching a bit from zero to one and back.
![](/images/teachers/g10/equation.png?x=5)
Random number generators -- creating and understanding how they work, with Basic example using Rnd function and int function.
![](/images/teachers/g10/equation.png?x=5)
Does an equation have a value? Yes, you can find the values of equations - True or False, in Boolean terms.
![](/images/teachers/g10/equation.png?x=5)
Counting truth values -- how many equations in a list are true or false? Counting up the true statements.
![](/images/teachers/g10/equation.png?x=5)
Testing for zero -- three methods to determine if one or more computer variables is equal to zero.
![](/images/teachers/g10/equation.png?x=5)
Walk through an array -- convert a two-dimensional index to a one-dimensional index. Use a function for reusable code.
![](/images/teachers/g10/equation.png?x=5)
Walk through an array -- convert a one-dimensional index to a two-dimensional index, using integer division and modulus math.
![](/images/teachers/g10/equation.png?x=5)
Removing Array Elements -- how to remove an element from an array, using basic programming techniques.
![](/images/teachers/g10/equation.png?x=5)
Parsing a string containing a comma-separated list of values to extract the values and perform some action with those values.
![](/images/teachers/g10/equation.png?x=5)
Given a number of seconds, convert that into minutes or hours. Uses the Mod function, Integer division, and the Format function.
![](/images/teachers/g10/equation.png?x=5)
A function to make words either plural or singular, depending on whether an integer variable is one or not.
![](/images/teachers/g10/equation.png?x=5)
Every time you select a section of code to copy and paste, ask yourself, 'Should this be a function?'
![](/images/teachers/g10/equation.png?x=5)
Randomizing an array by randomizing a second array containing indices into the first array.
![](/images/teachers/g10/equation.png?x=5)
How to validate an e-mail address entered by a site visitor. Does the e-mail address have the proper format?
Blogs on This Site
![](/images/icons/xfacebook.gif,qx=5.pagespeed.ic.tbC5TyzJ2E.png)