Small Basic - Hints for helping Cathy (and her babysitting career)
Here's a problem to test your Small Basic skills...
Cathy wrote the following program to figure out how much money she earned from babysitting. But there’s a problem: her program doesn’t work! Help Cathy find the bug in her program and fix it!
' This program computes my earnings from babysitting.
' hours worked: 20
' pay rate: $4 per hour
TextWindow.WriteLine("I earned: $" (20 * 4))
===============
What do you think?
Stuck? Well...
...
...
...
...
...
...
Take the Hint
The problem is String Concatenation.
You can find some resources about that here:
- Small Basic Tip: TextWindow.WriteLine - Concatenation of Text with a Number or Expression
- Beginning Microsoft Small Basic: Your First Small Basic Program - String Concatenation
Go to https://blogs.msdn.com/SmallBasic to download Small Basic for free and learn all about it!
Small and Basically yours,
- Ninja Ed
Comments
- Anonymous
January 31, 2016
Computers Today (part 1 of 6) blogs.msdn.com/.../computers-today.aspx ..... CS SPOTLIGHT: Girls in computer programming... why it matters!!! blogs.msdn.com/.../cs-spotlight-girls-in-computer-programming-why-it-matters.aspx ... Computational Thinking - Videos & Papers by Jeannette Wing blogs.msdn.com/.../computational-thinking-videos-amp-papers-by-jeannette-wing.aspx