Some SiMPLE Programming Challenges

(For Beginning SiMPLE Programmers)

Click Here to Read About SiMPLE


There are many SiMPLE programs that have already been created for you by other programmers. For example, the "Samples" folder (which came as part of your SiMPLE download) contains more than 40 source listings that you can simply drop onto your "SiMPLE" (toy block) icon. And our online "SiMPLE Program Gallery" contains even more source listings that you can run.

But the real fun in using SiMPLE comes not from running someone else's source listings. The real fun comes from creating your own source listings, and then seeing them "come alive" when you run them!

The following exercises are intended to give you practice at creating your own SiMPLE source listings. See how many of them you can do without looking at the "answers".

[Note: There is always more than one "correct" way of writing any program. So your listings may still be correct even if they differ slightly from ours.]


Challenge #0

Write a SiMPLE program that displays the word "Hello" on the screen.

(I give up. Show me.)


Challenge #1

Write a SiMPLE program that first waits for any key on the keyboard to be pressed, then plays two "Cuckoo" sounds, and then turns the display screen yellow.

(I give up. Show me.)


Challenge #2

Write a SiMPLE program that draws a solid blue circle (whose radius is 100 pixels) that just fits inside a solid red square in the upper-left corner of the screen.

(I give up. Show me.)


Challenge #3

Write a SiMPLE program that draws a purple rocket at the very center of the screen, waits for any key on the keyboard to be pressed, and then explodes the rocket.

(I give up. Show me.)


Challenge #4

Write a SiMPLE program that creates a display in which the left half of the screen is red, and the right half of the screen is green... except for a solid blue circle (whose radius = 275 pixels) located at the very center of the screen.

(I give up. Show me.)


Challenge #5

Write a SiMPLE program that changes the entire display screen from black, to blue, to green, ... and finally to white, (i.e., changes the screen to all sixteen colors), in one second intervals.

(I give up. Show me.)


Challenge #6

Write a SiMPLE program that computes the sum of all the 2-digit odd integers and then displays the result.

(I give up. Show me.)


Challenge #7

The product of three 2-digit integers is 24679. Write a SiMPLE program that finds those three integers and displays them.

(I give up. Show me.)


Challenge #8

Write a SiMPLE program that waits for the mouse to be moved to the very upper-left corner of the screen. The program should then produce a "rattle" sound, and terminate execution.

(I give up. Show me.)


Challenge #9

Write a SiMPLE program that produces "drip" sounds whenever the mouse is moving. The program should terminate execution when either mouse button is pressed.

(I give up. Show me.)


Challenge #10

Write a SiMPLE program that draws a solid blue circle (whose radius is 250 pixels) at the center of the screen. Then, when any key on the keyboard is pressed, the color of the circle should gradually fade from blue, to purple, to red... over a period of several seconds.

(I give up. Show me.)


Challenge #11

Write a SiMPLE program that tells the user to type something on the keyboard. Your program should then report how many characters were typed by the user, what the very first character was, and what the very last character was.

(I give up. Show me.)


Challenge #12

Write a SiMPLE program that draws a hollow circle (radius = 150 pixels) that starts out at the center of the screen and slowly moves toward the right (five pixels at a time). When it reaches the right edge of the screen, it should "bounce off" and start moving toward the left. When it reaches the left edge of the screen, it should again reverse direction and start moving back toward the right... and so on, until the "Esc" key is pressed to terminate the program.

(I give up. Show me.)

How would you modify the program so that the circle moves diagonally, and also bounces whenever it reaches the top or bottom of the screen?

(I give up. Show me.)


Challenge #13

Write a SiMPLE program that fills the screen with random upper case letters (A - Z), and continues running until the space bar is pressed.

(I give up. Show me.)


Challenge #14

Create a number-guessing game! Your program should first generate a random number less than 1000 and then prompt the player to start making guesses. After each guess, the player should be informed whether his guess was too low, too high, or correct.

(I give up. Show me.)


Challenge #15

Write a SiMPLE program that tells the user to type a message on the keyboard. Your program should then count the total number of vowels ("a", "e", "i", "o", or "u") that were in the message, and then report the result.

(I give up. Show me.)


Challenge #16

Caesar Shift Cipher: Write a SiMPLE program that tells the user to type a coded message on the keyboard (using upper case letters only). Your program should then display that same message in lower case letters... but with each letter in the message replaced with the letter that is three places further back in the alphabet. (I.e., "D" becomes "a", "C" becomes "z", "B" becomes "y", etc.) Then use your program to decode this message: VLPSOH LV FRRO

(I give up. Show me.)


Challenge #17

A Famous Puzzle: ABCD represents a 4-digit number whose digits are A, B, C and D, respectively. And DCBA represents another number with the same digits, but in reverse order. You are told that: A > 0, and 4*ABCD = DCBA. Write a SiMPLE program that finds and displays the number represented by ABCD.

(I give up. Show me.)


[If you're having difficulties creating your source listings, you might want to read our online SiMPLE Tutorial.]


Are you sure that your copy of SiMPLE is up-to-date?

Remember to Update it regularly!

(It's fast, and very easy to do!)

Site Index
The SiMPLE Entry Page The SiMPLE Homepage What Is SiMPLE? SiMPLE For Non-Programmers How To Download SiMPLE
Getting Started With SiMPLE The SiMPLE Tutorial How To Update SiMPLE The SiMPLE Program Gallery Using SiMPLE To Create Art
The SiMPLE Art Gallery "Digi-Doodles" The "SiMPAINT" Program Some SiMPLE Games The "Kaleidraw" Program
Some Programming Challenges Some Programming Tips The Module Library The Communications Center Using C++ with SiMPLE



  [ Webmaster | FAQ's | Home Page | Contact Us ]