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 Small Basic. 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.
Curriculum Challenge 2.3
- Draw a face using ellipses.
- Animate the face to move on the screen.
- Make a collage picture using all of the shapes (line, rectangle, ellipse, image, text and triangle) added at random positions, with random opacity, color, rotation and zoom. Consider using the Timer to create the shapes.
- Use the pen width and colour to create a gray car wheel with a black tire.
- Make an animated scrolling text program. If you want a harder challenge, move the text in a curve.
- Write a program to calculate triangular numbers (1,3,6,10...)
- Write a program to read data in from the GraphicsWindow. You should have a TextBox and Button to get the entry. Save the entered data in an array which you can save to a file or output to a multi-line textbox.
- Write a program to read some text and replace all capital letters with a * character.
- Write a program to convert currencies, graphical or text based. Perhaps use a file to store current exchange rates.
Make a pendulum that swings as accurately as possible.
Write a Atari missile command game.
Write a simple TextWindow based calculator using the stack using the ideas below.
Add (push) input to a stack.
If the stack has 3 entries then
- Get (pop) the 3 entries.
- Assume the 1st and 3rd are numbers and the 2nd is an operator (+ - * /).
- Do the sum and write some output.
- Put the result on the stack (push) and wait for more entry.
You could add some error checking for step 2.
Community Suggestion 1 (8 Bit Pony & Jibba Jabba)
Create a basic webpage with the shapes commands.
- Create a form that allows users to post feedback on the website.
- Create a log of hits on the site and log what they clicked on, then generate a summary of activity
- Create an online database of member details, a mini address book. (arrays practice)
- Create an online mini diary/journal that signed up visitors can use (secure w/password)
- Write the diary entries to file and maybe create a lookup form
Community Suggestion 2 (By Nonki)
- Make a subroutine to write text with format such as "#,##0.0". This subroutine has two parameters a format (i.e. "##" ) and a number (i.e. 9). And it write a formatted number (i.e. " 9") to TextWindow screen.
- Make a GUI for a cue of billiard. You may use mouse click, mouse drag or something else.
You can participate in the challenge in this forum thread: http://social.msdn.microsoft.com/Forums/en-US/3d5ba392-4e7c-4bc2-8180-034b258eea5b/challenge-of-the-month-september-2013
- Ninja Ed