Jump to content

Activities/Turtle Art/Challenges: Difference between revisions

From Sugar Labs
Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 12: Line 12:
File:C-03.gif  
File:C-03.gif  
</gallery>
</gallery>
Mike Leishman's 10 Green Bottles Competition. The idea is that you write a program to display the words of the song "10 green bottles" [http://kidsprogramming.pbworks.com/w/page/12770073/10-green-bottles]
Mike Leishman's Guess the Number
Write a guessing game computer program. It must ask the user to guess a secret number between 1 and 100 and continue until the secret number is guessed. If the user guesses the wrong number, display a message stating that they are too high or too low such as "Bad Guess – Too High - Try again". Make your program count the number of guesses taken. When the user guesses the correct number, display the Message "You guessed it in <number of guesses> guesses" and stop the program.
Extension: You can also provide the user with other information such as “cold”, “warm” and “hot” depending on how far out their guess is. [http://kidsprogramming.pbworks.com/w/page/12770106/Guess-the-Number]
Calculate the values of pi and e, find the prime numbers up to 1000
How many different ways can you do it?
How fast can you do it?

Revision as of 01:22, 1 March 2011

Challenges

Do Barry Newell's 40 shapes challenge [1]


Do Daniel Ajoy's Geometry Exercises [2]


Mike Leishman's 10 Green Bottles Competition. The idea is that you write a program to display the words of the song "10 green bottles" [3]


Mike Leishman's Guess the Number

Write a guessing game computer program. It must ask the user to guess a secret number between 1 and 100 and continue until the secret number is guessed. If the user guesses the wrong number, display a message stating that they are too high or too low such as "Bad Guess – Too High - Try again". Make your program count the number of guesses taken. When the user guesses the correct number, display the Message "You guessed it in <number of guesses> guesses" and stop the program.


Extension: You can also provide the user with other information such as “cold”, “warm” and “hot” depending on how far out their guess is. [4]


Calculate the values of pi and e, find the prime numbers up to 1000

How many different ways can you do it?

How fast can you do it?