I2P Coding Lesson 4

Tasks:

If vnum1 is less than vnum 2 then, print vnum1 is smaller

While count is less than 6 print count is less than 6

For i in range 10 print i

For each letter in “your name” print each letter

Code:

Results:

Pseudocode:

Feeding dog

Obtain box containing dog food

Open box containing dog food

Locate scoop for dog food

Pick up one scoop of dog food

Locate food bowl

Pour dog food into bowl

Flow Chart:

Reflection: We created a flowchart and psuedocode for the real life scenario of feeding a dog. These two methods can help you plan out your code without having to deal with syntax and also while making it easy to comprehend.

Pseudocode for the number game:

Select a random number

Get a guess from the user

While the guess is incorrect

if it’s too high then print “Try lower…”

if it’s too low then print “Try higher…”

While the guess is correct

print “Well done! You got it!”

Flowchart:

Code:

Results:

I2P Coding Lesson 3

Today in class we did a set of challenges to help us learn new coding techniques.

Questions:

When do we use elif? We use elif when we have already used if and want to use it again for a different variable.

When do we use else? We use else when we have already used if, and we want all other scenarios to create the same answer in the code.

Challenge 1:

Set a variable called score. If the score is more than 75 then print “winner!” otherwise print “loser!”

Challenge 2:

A variable called title and name that stores the users input and prints it out.

Challenge 3:

Ask, “What is your animal”. Find if there is an ‘a’ in the word that is inputed and then print if there is an ‘a’ in the word.

Then we did some loop stuff that I don’t understand at all.

I2P Coding Lesson 2

Today we learned how to define integers and floats. We also learned how to concatenate string and slice them. We also learned how to use an if statement and a while loop. We also made sure to fix our small errors that stopped our code from working. I learned how to use inputs to tell a user how many months they’ve been alive for. This makes me very cool and smart. I also learned to how split up a sentence in many different places.

I2P Lessson 6

Today in class we discussed a issue that is prevalent for students at HKIS, which is the food in the cafeteria. Then we created a survey, asking questions to students about what they thought the problems with the cafeteria food was, whether it was too expensive or not high enough quality.

I2P Lesson 5

Today in class we created a prototype of our backpack, in which we met the consumer needs by having a compartment for school supplies, and a water bottle holder.

 

I2P Lesson 4

“I have very long arms, watch this”

“Don’t judge my story by the chapter you walked in on”

“The person I look up to the most is my dad”

 

Our school, HKIS, has an issue with the comfort and usability of backpacks, so we are creating a backpack to better suit the students needs.

Swag! 😀

I2P Lesson 3

Today in class we wrote instructions on how to tie shoes in as few steps as possible. My steps are as follows:

Take both laces and cross one lace over the other and then pull them tight

Make a loop with one of the laces

Wrap the other lace around the looped lace

Pull the lace through the whole that has been created to create another loop

Movie on 8-22-17 at 10.37 AM

This relates to programming because the robot, in this scenario me, is following instructions to complete actions.

 

I2P Lesson 2

Today in class we used the programming that someone else made yesterday, to walk to Starbucks and then to order a drink. When we got someone else’s instructions, we went up to the island with a partner, and performed iterative testing, by repeating the instructions. Once we finished, if we were successful, we left the instructions, but if they were incorrect, we made the appropriate corrections. Correcting the changes so that the robot could get to Starbucks is called debugging.

I2P Lesson 1

Today in class we introduced ourselves and told the class why we chose to take this course. After that we had a quick discussion about different programming languages and what they are best used for. Once we had finished talking, we decided to go up to the island and ‘program’ instructions for one another so that we could walk to Starbucks from the island blindfolded. Finally, we went back to the classroom and wrote very basic instructions in programming format for how our robot would get to the island.

Overall, I am very lost in the class and I’m beginning to question why I signed up. Hopefully I can pick up the concepts taught in class quickly and get an A in the class.

Project 3 Reflection

I felt that my project on saving water was pretty good, yet I definitely could have improved it. If I was able to have more clarity in the ideas I was trying to show it could have surely been a more effective PSA/Project. In this course I learnt many things which included multiple camera angles and different ways to show my ideas through film. I would recommend this class to students in future years, yet unfortunately the teacher is leaving, so it may not be as good next year.

<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/k4_WNt0Jutw” frameborder=”0″ allowfullscreen></iframe>