Today in class, we made a program where Karel builds two towers. Each tower has three balls stacked on top of each other.
First, Karel moves to the spot, then builds the first tower by placing a ball, moving up, and repeating it three times.
Then Karel moves to a new spot and builds the second tower the same way.
We weren’t allowed to use the commands turn_right() or turn_around(), so we had to be smart and use turn_left() over and over to face the right way.
Today in class, we made a program that tells Karel the Robot to walk in a straight line and flip the colors of each square as it goes. If a square is blue, it turns it red. If it’s red, it turns it blue.
Karel keeps doing this while the path in front is clear. At the end, when it can’t move anymore, it flips the color of the last square it’s standing on too
Today in class we split up in stations and were tasked to use array block code to program a micro bit to display differnet messages through agi list of things to do that were controlled by A or B on the microbit
In class this day we learned about simulations and studying one example where a population of wolf sheep and grass is tracked putting in different inputs and changing the starting values we saw how how this simulation of this ecosystem thrived .
starter page
Humpty Dumpty sat on a wall
Humpty Dumpty got close to the edge to look down.
Humpty Dumpty Had a great FALL!
All the king's horses and all the king's men couldn't put Him together again.
In this project we were tasked to prgram a interactive story using graphic code which allow us to create and animate the images on the console I chose to create / retell the story of humpty dumpty.
This code effects the black circle by changing its size once you click the left arrow button to give the user the illusion that the black circle is growing
In this Assignment we made a program that prints out red rectangles every time the console is clicked
In this project we were tasked to kind of freestyle code any thing we want I chose a favorite color picker
In this sandbox project I created a random number guessing game where the user has only ten chances to input the right number also wether you win or lose a message appears as well
Write a program that simulates a coin flipping. Each time the program runs, it should print either “Heads” or “Tails”.
There should be a 0.5 probability that “Heads” is printed, and a 0.5 probability that “Tails” is printed.
There is no actual coin being flipped inside of the computer, and there is no simulation of a metal coin actually flipping through space. Instead, we are using a simplified model of the situation, we simply generate a random probability, with a 50% chance of being true, and a 50% chance of being false.
Labels for #1 and #2 have already been placed for you. Your job is to send Tracy to position 3 at (-130, 30) and label it as ‘#3’ in red.
Then send Tracy to position 4 at (-130, -70) and label it as ‘#4’ in red as well.
Be sure to pay careful attention to capitalization and spelling as even the smallest typo will cause an error!
Also, notice that you can use either single (') or double (") quotes around values.
At the end of the year, we had to do a big project called the Performance Task. It was like a final test, but instead of answering questions, we had to create our own program and explain how it works.
We picked a problem to solve with code, made a program that used algorithms, abstraction, and functions, then wrote about what we did. We had to explain what our code does, how we made it, and why it’s important.
It was kind of like showing off everything we learned this year in one big project. It was challenging, but it felt good to make something on our own and understand how it works.
I created a Game where you roll a set of digitalized die where you win if yiu roll a higher number than the computer
Write a program that prints out the numbers in the Fibonacci sequence up until the max number. You can figure out the next number in the Fibonacci sequence by adding the two previous numbers.
The first number is 1 and the second number is 1. To get the third number we take 1 + 1 = 2. To get the fourth number we take the second number plus the third number (1 + 2 = 3).
Here is a sample run of the program.
You are a librarian! Ask the user for the last names of the authors of the five books they are returning. Print a list of those names in sorted order.
Here’s what an example run of your program might look like:
This program simulates a computer with an 8-bit (1 byte) capacity that converts a decimal number into binary.
A bit is shorthand for binary digit and is either a 0 or a 1.
A byte is 8 bits.