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:

Screen Shot 2017-04-07 at 7.43.57 pm Screen Shot 2017-04-07 at 7.43.50 pm

 

Flow chart:

IMG_4426

 

Testing Document:

IMG_4427

Video of my Code working and Explaining the code:

Website References:

Functions: http://stackoverflow.com/questions/17159485/how-do-you-restart-a-python-guess-a-number-game

Else Statements: http://stackoverflow.com/questions/7025443/else-elif-statements-not-working-in-python
Indentations: http://stackoverflow.com/questions/1711756/python-indentation-error-unindent-does-not-match-any-outer-indentation-level

Lists, Lesson 7a, b, c

IMG_4410 IMG_4408

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:

PyCharm recording – 1 Screen Shot 2017-04-05 at 8.30.09 pm

Python Lesson 6a and 6b, Reflection

Screen Shot 2017-03-30 at 3.54.59 pm

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

Screen Shot 2017-03-27 at 7.06.29 am

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

Screen Shot 2017-03-21 at 5.19.13 pm

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.

IMG_4341

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:

Screen Shot 2017-03-13 at 6.23.49 pm

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:

Screen Shot 2017-03-02 at 5.57.28 pm 2 Screen Shot 2017-03-02 at 5.57.35 pm