Home » Archive

Articles in the 2010 Spring Creative Computing 1 Category

2010 Spring Creative Computing 1 »

[3 May 2010 | No Comment | ]

Make sure you have read through the tutorial and tried things out on your own to make sure you understand the idea of lists before jumping into these.  I didn’t show everything you need to know in class, so you do need to go through it!
Activity 1: Days of the week
Write a program that creates a list of all the days of the week, prints them out, removes Saturday and Sunday then prints that out.  You should then sort the days of the week alphabetically.  Finally, you should reverse that …

2010 Spring Creative Computing 1 »

[2 May 2010 | 2 Comments | ]

Lists are tricky and you’ll need some time to play with them.  We’ll try something a little different this time — I’ll give you just a little background information and you’ll go through a tutorial and take notes as you go.  I encourage you to try the examples listed and extend them: try different parameters, doing things in different orders, etc.
By the end, you need to submit a program that creates a list of all the days of the week, prints them out, removes Saturday and Sunday then prints that …

2010 Spring Creative Computing 1 »

[18 Apr 2010 | No Comment | ]

External Correctness
___/ 5 – Game is playable and appropriate
___/ 5 – Game has at least five decision points
___/ 1 – Game is infinite
Internal Correctness
___/2 – At least two variables
___/5 – One “puzzle” using while loops
___/2 – Complex conditional
___/2 – One way to die
___/2 – One way to win
___/1 – Comment with name at top

2010 Spring Creative Computing 1 »

[18 Apr 2010 | No Comment | ]

You will write a text-based adventure game in Python. The story line is entirely up to you, so have some fun with it!  In a text-based adventure game, information about the state of the world is printed out to the user and the user is given options to act.  For example:

West of House
You are standing in an open field west of a white house, with a boarded front door.
There is a small mailbox here.

What would you like to do?  1) Go North 2) Go West 3) Open mailbox
3
You open the …

2010 Spring Creative Computing 1, 2012 Spring Intro to CS »

[6 Apr 2010 | 2 Comments | ]

While loops or indefinite loops are a very important programming construct — they allow us to continue executing code until a particular condition stops being true. (See the Text book section: While Loops).
You will complete activities 1 and 2 and your choice of 3 or 4.  Write all of these in a single file with each activity in its own function.
Activity 1: Countdown
Write a program that asks the user for a number, and prints a countdown from that number to zero. What should your program do if the user inputs …

2010 Spring Creative Computing 1 »

[22 Mar 2010 | 3 Comments | ]

Activity 1: Squiggles

Write a Turtle Graphics program that draws random squiggles. Your turtle should go forward a random amount, turn a random amount and draw a line of a random color. Your program should produce output similar to the image at left.
Make sure you understand what the type and range of parameters to forward, right and color are and pick random values that fit.

Activity 2: Colorful pole
Write a Turtle Graphics program that produces a shape similar to the one at the left.  Your pen width will have to change over time …

2010 Spring Creative Computing 1 »

[22 Mar 2010 | No Comment | ]

Many interesting programs including most games have some sort of random component to them.  Some examples:

In Solitaire, the cards are shuffled randomly.
Every time you get hit in a shoot ‘em up game, your damage is randomly generated.
In a flash card studying program, cards are selected in a random order.
Your passwords are all encrypted using random numbers.

In reality, it’s impossible for a computer to generate a truly random number, so instead we rely on pseudorandom numbers.  Those are good enough for any situation where no money is involved (not for the lottery)!!
The …

2010 Spring Creative Computing 1 »

[9 Mar 2010 | No Comment | ]

Please turn in both constant change and conditionals here even if you had turned them in last week. If you had turned them in last week, great! I expect you to have made significant progress since then. If you have extra time, do something awesome! You now have lots of Python tools at your disposal.
Constant change rubric
(__/1) – comment with name at top of program
(__/2) – attempt at at least one constant change problem
(__/2) – demonstrates understanding of use of i to create constant change
Conditionals rubric
(__/4) …

2010 Spring Creative Computing 1 »

[3 Mar 2010 | One Comment | ]

Make sure you have read and understood conditional notes before you try these.
As usual, feel free to skip around. You need to turn in at least 4 of these!
Activity 1: Speeding
You are driving a little too fast, and a police officer stops you. Write a function that given your speed, tells you what kind of ticket you get. If speed is 60 or less, print “no ticket.” If the speed is between 61 and 80 inclusive, print “small ticket.” If the speed is 81 or …

2010 Spring Creative Computing 1 »

[3 Mar 2010 | No Comment | ]

Dear 6th period,
I’m terribly sorry for abandoning you on Wednesday. I was excited to tell you about conditionals since they’re so useful but sadly I got a migraine. Migraines are not fun.
As I wrote on the board, I would like for you to spend your long period doing work with conditionals as well as continuing to explore Python in general. By the end, I would like for you to turn in two files: one with at least one constant change practice and another with at least four …