Small Challenge 1
Write a program to calculate the average of 10 random numbers (in the range 1 to 100).
Then calculate the average of 100, 1000 or more of the random numbers.
The average is just all the random numbers added together and then their total divided by the number of random numbers.
Small Challenge 2
Write a program to display a colorful welcome message in the GraphicsWindow when a button is clicked.
Small Challenge 3
Write a program to play ‘Happy Birthday’ or another well known tune using the Sound method.
I have a lot of Small Basic files and they are not always well named – I can sometimes remember a variable name I used in one or some other phrase, but not the file name.
Write a program that searches all Small Basic programs in a directory to find all files (and the line numbers) containing a user input text.
Basically ‘find a text’ in files.
Write a program to reflect a light beam off a rotated surface.
Further challenge – make a game where the user must rotate the surfaces to get the beam to bounce off several surfaces and hit a target.
Community Suggestion Challenges
By Nonki Takahashi
1] Draw a picture of any zodiac (star) sign.
2] Write a quine. (Math Man early answer HRC429). Can you do it without a File command that reads the file?
By Amir CPS
1] Convert a number in decimal form to the equivalent mixed number with the fraction portion reduced to lowest terms.
- 2 AND 19/20
- 14 AND 1/5
- 5 AND 5/8
2] Read a string and determine whether each left parenthesis ‘(‘ has a matching right parenthesis ‘)’.
- (3 + (7 * 2) – 6)
- HELLO AND (WELCOME (TO THE) SB (FORUM)
- TODAY) IS ((SATURDAY())
- NO MATCH
- NO MATCH
3] The 8-Queens problem in chess is to place 8 queens on a chess board such that none of the queens is threatening any of the others. The problem is to input the 8 columns of the queens on the rows of a chess board, with 1 being the first column and 8 being the last, e.g. 1 2 3 4 5 6 7 8 means the queens are along the diagonal, which would not be a valid solution.
More Info about this problem
Write a program to test a user input guess.
- Enter board configuration: 3 5 2 8 1 7 4 6 – This is a valid configuration.
- Enter board configuration: 1 8 2 5 3 7 4 6 – This is NOT a valid configuration.