Chapter 5 - VB.NET Language and Syntax - Part 2
Tutorial
Math and Programming
People who have never tried it often imagine that programming is similar to mathematics. I have often been asked, "Don't you have to take a lot of math classes to be a programmer?" A solid understanding of math concepts helps, of course, but programming isn't really the same as math at all and that's partly because the computer does all the hard stuff. The next section of the book introduces you to how write software to pursuade the computer to do your math for you.
A few of the basic math operators, such as remainder division or string concatenation might be unfamiliar to you. And some of you might wonder why string concatenation is even considered to be a math operator.
The main reason is that string concatenation can be used with numbers to create results that are numbers. As you work with math operators, you will probably discover that most of what you do with them is NOT complex calculation, but rather the manipulation of other elements of your programs that can be expressed as numbers.
- How to use InputBox and MsgBox as the first examples of function statements
- "Magic" Numbers in the Code
- Trying Out Changes in the Book's Code
- Windows Form Designer Generated Code
- More on Numbers and VB.NET
- Math and Programming
- Examples of the Math Operators
- What Should Have Been Included in the Book
- Qualifying With System.Math
- The Bottom Line!

