# User Ed - The blog of Ed Price, Customer Program Manager

User Ed is a Microsoft blog written by a Senior Customer Program Manager, Ed Price. Ed enjoys Customer Engagement, UX Design, Small Basic, Visual Studio, Power BI, TechNet Wiki, and general education around Microsoft products. Oh, and I'm Awesome.
Posts
• #### Small Basic - Numbers Triangle Example

A Triangle of Numbers This next example has a nested loop where the inner loop’s counter depends on the outer loop. Try out the Listing. Listing: Nesting For loops to draw numbers displayed in a triangle 1 ' Triangle.sb 2 ' Draws...
• #### Small Basic - Compound Interest Example

Let’s Make Money Let's say you invested \$100 in a project that yields 2% at regular periods of time. The Table shows how your money grows over time. Table: How your money accumulates After You’ll have ...
• #### Small Basic - Multiple Nesting Levels

You can have more than two levels of nesting in Small Basic. The example in the Listing below shows you three levels of nesting. The flowchart in the Figure below explains the output of this program. Listing : P = 0 ' Pass number For...
• #### Small Basic: Multiplication Table Example

In this example, you’ll create a program that displays the multiplication table for numbers 1 through 5. See the complete program in the Listing. Trace through the program to understand how it works! (Tracing is where you write down the values on...
• #### Small Basic: Iteration Count

Take a look at this For loop: For N = i To t Step s Statement(s) EndFor i is the initial value, t is the terminal value, and s is the step size. You can use this formula to find the number of times your program runs the loop (the iteration...
• #### Small Basic: Story Game Gallery

Hello! Please post your Mad Libs style Story Games here, and we'll add it here as a gallery. Our first one comes from Talgon96 . Silly Story Writer - KKK028 In Talgon's words, "It's not graphically pleasing but it will make you laugh...
• #### Small Basic - More About MouseMove

More about MouseMove The MouseMove event reports that the mouse cursor has moved within the GraphicsWindow . As the mouse is moved, the GraphicsWindow might receive a flood of MouseMove events. If the cursor is moved slowly, your application might...
• #### Small Basic - Special Keys: Alt & F10

Special Keys The Alt and F10 keys are special keys that have special meaning to the Windows operating system. If you press these keys while running an event-based program that displays your keystrokes, you’ll notice that the LastKey property...
• #### Small Basic - Variables as Named Constants

Variables as Named Constants Try out the program in the Listing; it displays the phone numbers of your friends in a TextWindow . (At least, we think they’re your friends.) Listing: 1 ' PhoneList.sb 2 'Displays the phone numbers...
• #### Small Basic - Scientific Notation

Scientific notation is a way to write numbers that are too large or too small. For example, a microbiologist might need to measure cell growth up to 0.000000005 of a micron. Use scientific notation to write the number 56,372.85 as 5.637285´10...
• #### Small Basic - Automatic Type Conversion

Automatic Type Conversion You’ve probably seen how to write expressions with both integers and decimal numbers, and you also probably know how to glue (concatenate) two strings together using the plus sign. But when an expression includes both...
• #### Small Basic - Strongly-Typed Languages

Most professional programming languages are strongly typed. This means you have to specify the type of the variable when you declare it. For example, to create a variable that’s intended to store an integer (a whole number) in C++ or Java, you...
• #### DECIMALS ARE FLOATING POINT NUMBERS

An integer is a whole number with no decimal point; a floating-point number is one that has a decimal point. The term floating point came from the way decimal numbers are stored in a computer’s memory. The decimal point "floats" or moves within...
• #### Small Basic - Creating Different Variables

Variables in Small Basic are typeless , which means you don’t need to set the type of the data you’re going to store in a variable. Small Basic would actually let you use the same variable to store integers, decimal numbers, strings, or even...
• #### Small Basic - Combining Strings and Variables

Combining Strings and Variables Be careful when you want to display variable contents as strings! These two statements are different: TextWindow . WriteLine ( "x" ) TextWindow . WriteLine ( x ) The first statement displays the literal string...
• #### Algebra VS Small Basic

A key difference between Algebra and Small Basic In algebra, x = 5x–8 is an equation whose solution is x=2 (5 times 2 gives you 10, and 10 minus 8 is 2). But in Small Basic, this is an assignment statement that evaluates the expression...
• #### Small Basic - Invalid Variable Names

This Table shows some illegal variable names, along with the reason why each name’s invalid. Table: Invalid Variable Names Variable Name What’s Wrong? 2Player starts with a digit ...
• #### Small Basic - Dragon Game

How have you built or improved on your Dragon Game? Please leave a comment with any ideas you've had when building a dragon game! This first example game is a Text game where you try to slay a dragon: http://smallbasic.com/program/?ZWR253...
• #### Small Basic Recursion

A First Look at Recursion First, take a look at these Goto resources: Small Basic - Goto Loops Small Basic Curriculum: Lesson 1.5: Branching and Subroutines Small Basic: Control Statements > Goto statement Small...
• #### Small Basic - Using Stacks

Using Stacks to Manage the Handshake The subroutines you wrote in the last few blog posts ( Small Basic - The Triangle Area Calculator and Small Basic - Nesting Subroutines ) used a handful of variables to pass information back to the main program...
• #### Small Basic - Nesting Subroutines

This blog post continues what you learned in the Triangle Area Calculator, here: Small Basic - The Triangle Area Calculator Nesting Subroutines Overview A subroutine might call other subroutines, like in Figure 1. In that figure, the main...
• #### Azure Guru Winners - March 2015

It's time to award our top articles of the month! A nd below are the Azure Guru results for the TechNet Guru Awards, March 2015 !!!! The TechNet Guru Awards celebrate the technical articles on TechNet, contributed from valued wiki authors...