Welcome to the monthly SmallBasic Challenge!
These challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using SmallBasic. Some will be easy, some will be hard – but they will all make you think, and more importantly be GREAT FUN!
Please post your solutions / partial solutions / questions / feedback etc. into this thread that will remain ’sticky’ for the month. The only rule is that your solution must use standard SmallBasic methods (no extensions).
It would be good if people could post their problems with these challenges so that a discussion can start so that everyone can learn from each other.
Also post feedback on the kind of challenges that you want to see more of in the future.
Community Suggested Challenge 1 -by MathMan
Write a program to calculate the area of a crescent.
Community Suggested Challenge2 -by Nonki Takahashi
Write a program to find the divisors of a given number.
Write a program to model a weight attached to one end of a spring. The other end of the spring is stationary.
Extend to the model if you can to have several springs attached to the weight.
Excuse my crude drawing.
Write a program where the turtle tries to follow the mouse.
For more of a challenge, don’t use the Turtle.MoveTo command!
Write a program to get the user to enter a number and write it out in words, for example 123 is one hundred and twenty three.
Math Challenge 1
Find all the numbers palindromic numbers less than 1000, eg. 1 131, 424 etc (the same forwards as backwards).
Math Challenge 2
Find all the 2 digit numbers that when the digits are reversed and the smaller number subtracted from the larger, the result is 36, for example 15 and 51.
To make it more complex find all the numbers less than 1000, where the difference of the reversed digits is a number entered by the user.
Do you have an idea for a future challenge? Please post it here: http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/a3431e06-2a46-416b-855f-fcda46b459ec
Nonki Takahashi - For suggesting this blog idea!