CRD-2.I.1
A logic error is a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly.
CRD-2.I.2
A syntax error is a mistake in the program where the rules of the programming language are not followed.
CRD-2.I.5
The following are effective ways to find and correct errors: test-cases; hand-tracing; visualizations; debuggers; adding extra output statement.
"You will need to go to the sandbox and create a version of Python Super Karel that utilizes all that we have learned up to this point. "
I made a program the makes Karel make a heart out of tennis balls using all of the commands we have learned up until now
This lesson goes over if/else statements in coding These statements are a set of instructions for karel to follow now giving him a condition to completing the task at hand.
ex: if I am hungry :
eat food
else: don't eat
AAP-2.G.1
Selection determines which parts of an algorithm are executed based on a condition being true or false.
AAP-2.I.1
Nested conditional statements or “else if” statements consist of conditional statements within conditional statements.
AAP-2.J.1
Iteration is a repetitive portion of an algorithm. Iteration repeats until a given condition is met or a specified number of times.
While loops help shorten what could've been 12 lines of code into 2 lines making the code more efficient and clean while making the process convenient and less tedious
Innovation can occur when people work together or independently. People working collaboratively can often achieve more than individuals working alone. Learning to collaborate effectively includes drawing on diverse perspectives, skills, and the backgrounds of peers to address complex and open-ended problems. In this activity, you will be pair programming with a partner to create a program.
this is a short practice on if or else statments. This practice suggests meal suggestions for the time of day your meal is at. This code requires user input meaning when the code is run whoever ran it has to type in there requested meal time.
This code defines a function called triple that multiplies a number by 3 and then prints the result. It then calls the function twice: first with 4, and then with 5, so it will print 12 and 15 etc. This code was a simple variable and operation practice
This code repeatedly asks the user to enter a number and checks whether it's even or odd. The function is_even checks if the number is divisible by 2. If the user enters 0 (the sentinel value), the program stops. For any other number, it prints "Even" if the number is even or "Odd" if it's odd. Once the user enters 0, the program prints "Done!" and ends.
This code defines a function minVal that compares two numbers and returns the smaller one. It then calls the function twice: first with 10 and 5, and second with 12 and 4. It prints the smallest number from each comparison, showing "The min is 5" and "The min is 4." This code defines a function minVal that compares two numbers and returns the smaller one. It then calls the function twice: first with 10 and 5, and second with 12 and 4. It prints the smallest number from each comparison, showing "The min is 5" and "The min is 4."
Using the Python3 Sandbox in CodeHS follow the linked instructions to create the game.
Your task is to remix this game to make it yours.
You are also to get a YELLOW folder from the back shelf and answer Question set 1 questions about your program.
This code is a guessing game where the user tries to guess a randomly selected color in Spanish. The program picks a random color from a list and asks the user to guess it. If the guess is incorrect, it prompts the user to try again until they guess correctly. Once the user guesses the color, it congratulates them and shows how many attempts it took.
Objective: Create a Halloween-themed game using SNAP!
● Import Halloween-themed sprites (pumpkin, candies, ghosts).
● Place the pumpkin in the center of the stage and scatter candies and ghosts throughout the stage.
● You need a minimum of 5 candies and a minimum of 1 ghost.
I made a simple story following a cute circle character name peko the story consist of the viewer being prompted to watch peko while the opposing friend character leaves for a second. However peko has been feeling a little under the weather and strange changes occur while pekos friend is gone.
Students need to break the concept down, identifying several components:
(1) Function w/ a parameter
(1) Function w/o a parameter
Algorithm
Sequencing
Selection: If/Else, If, If/Else…Elif
Iteration: For Loop, While Loop
for my performance task I created a sequence of scenes following the story of a trivia game testing for contestants for there show.
Some people have just a first name and a last name. Some people also have a middle name. Some people have five middle names.
Write a program that asks the user how many names they have. (If they have a first name, two middle names, and a last name, for example, they would type 4.) Then, using a for loop, ask the user for each of their names. Store the names in a list.
Then, use slices to separately print the person’s first name, middle name(s), and last name.
Students will be broken up into 2 groups, where they will be tasked with researching and applying their findings in an online simulation.
My group was given the Bridge simulator we were tasked with making a hypothesis and testing it out and if it didn't work wed re form it
we made the hypothesis that multiple x squared structures would hold up to 2000kg and we were correct in our hypothesis.
This experiment implies that the planning of a bridge's structures must be well thought out for the bridge to be able to undergo all weights. The real world is most likely more complicated in its planning process.
We Remixed the original Code and made it our own.
This code originally displayed activities from a random array of options to make this code my own I changed it and made it into a array of colors displaying multiple different colors and one question asking what's your favorite color.
Our Goal was to act as a network and sort 3 sets of task cards with numbers on them until they land in the correct order.