# Using Scratch & Investigating Makey Makey -w/ Block based programming

1. Scratch is a program online that allows you to make games without typing code but moving a series of building blocks in order to make the code.

2. You can create a basic game with Scratch programming you can also create a lot of other types of programs with Scratch.

3. I finished most of my game but I forgot to take screenshots

Makey Makey:

1. A makey makey is a controller that allows you to control your computer through inputs with your body.

Video of Makey Makey:

IMG_4448

# Sports Quiz, Python Summative

I coded a 15 question quiz on sports using lists, functions, integers, if, elif and else statements. In this quiz it calculated your total score out of 15 questions and if you get a question wrong it restarts the code.

Screenshots of the code:

Flow chart:

Testing Document:

Video of my Code working and Explaining the code:

Website References:

# Lists, Lesson 7a, b, c

My flow chart and pseudo code for adventure game.

I was not able to get my adventure game totally done however I was able to get about half done. I ran into troubles trying to make the program break and end the game however my partners helped me and instead of doing the break I did exit and it seemed to work. At first I forgot to put the while loop in and I spent sometime fixing that.

Video and screenshots of my Adventure Game:

# Python Lesson 6a and 6b, Reflection

Today we worked on using functions. The benefit of using functions is that you can add two integers together. Also you can have the computer determine which variable is the largest. We also started making code for a chocolate bar machine however since we got paired up I could not take a screenshot of the code sorry about that. But Karan and I started coding the chocolate bar machine and we were able to make it work without using functions.

# Python Lesson 5a and 5b, Reflection

Today in python I created a guess the word game based on pseudo code I made earlier on it. I was able to complete the game with the game working fine however I did not finish any of the extension. I was able to create a list of words and the computer takes a random word from that list. This took me a while to complete because I had to use the raw input function instead of a regular input function. It took me a while to fix my code after that because I had to adjust my code to fit the raw input function.

# Python Lesson 4a and 4b, Reflection

I was able to code a working guess my number game using if statements and while loops. I also was able to make a flow chart and pseudo code  on the code I was going to use. I was also able to create two of the three extension tasks which are having the computer pick a random number between 1-50. The other extension task was to print how many guesses the user took. I was also able to print congrats at the end if the user won.

# Python Lesson 3, Reflection

ELSE, ELIF, IF

We worked on these concepts in class and were able to code them. ELSE is a statement used in coding for example it is used when there is a different option such as if user input is 12 then say this, Else say this. IF can be used in multiple codes for example IF user input is this then say hello. ELIF is short for else if, it used for different options.

Screenshot:

While loops are statments used to generate a loop. Here is an example:

```count =0while(count <9):
print'The count is:', count
count = count +1
print"Good bye!"

```

# Python Lesson 2, Reflection

In today’s lesson we learned how to define integers and floats. Also we learned how to use the if statements and while loops. We also learned how to slice. I had a couple problems with my code however I did some problem solving and was able to solve it. I was also able to come up with solutions to the problems that most people didn’t think about while still following the criteria. I used a lot of inputs from the user to help solve my code because I found it useful to use.

Screenshots:

# Building a Backpack

Was you initial design the same or different than your final design?

Our final design was just a little bit different than the initial idea, the main problem was that we did not have to much time also we did not have the materials needed to make a good backpack. Our initials design had more pockets on the outside and our final product has on pocket.

Where did you get stuck?

We got stuck on figuring out how to make the straps for the backpack since it would have taken too long to make since we only had 30 mins

What was you best idea?

I think my best idea was the pocket on the outside since you can put stuff in it without the items you put in the pocket falling out.

I think the straps can improve since it was hard to put them on and the backpack would just fall to the floor every time   you put the straps on.

# Programming a peer

1. What were you asked to do?

I was asked to write a program for my partner, the program was supposed to guide him while blind folded to collect dragon emblems around the room.

2. What was most successful?

We were able to collect three out our four target emblems and we missed the fourth by a little bit.

3. What problems did you encounter?

When grabbing the fourth emblem I was reaching to far backward and when I reached forward and a different group grabbed right before we had a chance too.

4. What can improve your technique?

Maybe if we added one extra step to get the last dragon emblem we would have been in a better position to grab it.

Shoe Lace activity

1. Overlap lace over the other creating an X
2. Move the overlapping lace under the other lace
3. Tighten
4. Make a loop with the left shoe lace.
5. Go around the loop with the right shoe lace and go under the second loop you just made
6. Hold the left loop and the right loop tighten

Our code worked at it was only six steps and there was a minimum requirement of four steps there fore we were only two steps off of having a minimum amount of steps.