Intro to Programming Summative Quiz

Flow Chart

Psuedo Code

Video Link (File was too big, so I had to upload it to youtube)

Audio (The audio to the video didn’t load properly)

 

There were numerous lessons that helped me perform some of them included: Lesson two when Ms. Mok taught us elif statements, and how to capitalize certain words. My questions were formatted in if statements so by not having them it would be difficult to code, learning to capitalize words proved useful because this meant they could answer in both lower and uppercase. I also drew from lesson five, which taught me how a while loop worked. My whole quiz is run a while loop. Finally, guess my password lesson helped me to record how many mistakes the user had made, it also taught me how to round numbers.

For this summative, we had to create a quiz using the technique we learned in class. I didn’t run into too many problems, the only problem that I had was my ‘tries’ function, which was quickly solved when a peer of mine (Dhruv) told me I forgot to define it (XD). The rest I had learned in class. If I had more time to work on my quiz I would focus on the formatting, as it is very messy/unreadable. It spent quite a bit of time searching for specific lines of code. Overall, I think I did a good job demonstrating my understanding of the topic, hopefully, Ms. Mok will be able to read my code.

Code:

Python Lesson 2A

In this lesson, we learned how to repeat yourself, all you have to do is define a variable and tell it to print(‘whatever variable you had to defined * 10’).

We also learned that Triple quotes allow the computer to have line breaks.

Float, allow the user to calculate numbers in decimals.

Integers or int tells the computer that it is a whole number that is positive or negative.

Strings are texts you want to display.

In this example, I have a loop and an ‘if’ statement. I used elif when I have another if statement. This is a loop because there can be three different outcomes to this function.

More examples of code:

 

 

 

Blog: Reflection – Python Lesson 1

Today I learned a lot about coding terms such as the print function. You write ‘print’ before the text and anything afterward will show up as the printed word to the user of the program.

I also learned how to define a variable, this is extremely helpful as if you don’t define a certain variable the computer won’t know what to do. This made all the sense in the world, especially because when we did robot commands in the first lesson of the class we learned that if you don’t define a variable for your ‘robot’ your commands will not make sense. In turn, they will not be able to perform your commands.

The Input is extremely important, it will ask the user of the program a question and can be responded to. At first, I didn’t understand why this was so important, but now I understand how crucial it is for almost any website.

I believe an integer is a number, while a string a long text surrounded by () or “”.

Backpack Reflections

 

 

Our initial design was too much, there were too many unnecessary things, such as rings around the backpack for earphones. At first it may sound like a good idea, in fact, most earphones aren’t long enough to completely go around. Our final design was much more basic and simple, on our survey the consensuses was that they wanted a bag that was not over the top, but meet all their needs.

Trying to meet their needs, it felt like if we tried to meet their needs the bag would be over the top, but if we didn’t it felt too simple.

Honestly, I didn’t come up with the backpacks best idea, it was my partner. While we tried to think of a design for the backpack, he said, “let’s have one big zipper to put everything in it.” This made all the sense in the world, it was not only simple, but it could fit the needs of our surveryors as it was big enough.

Not the best, we mostly focused on the big zipper, and didn’t really think about stuff that our surveryors wanted. They wanted things such as, water bottle compartments, a lot of little zippers, etc.

Humans of HKIS

Renee DeMaio is a student of HKIS and has lived here in Hong Kong for a total of 7 years. Although she has lived in Hong Kong for a total 7 years, this is her first year in Hong Kong. She lived here in Hong Kong at a young age but moved back to the United States. Her favorite subject is Mathematics because it makes sense to her. If she could eat anything forever she would love to eat salads because it is nutritious, and taste good. She tells me that, “she isn’t as white as she seems.”

This is Shiv Daryanani, he is a tenth grader, his hobbies include, rugby, and coding. His favorite subject is Math, as he says he is really good at it. He has lived in Hong Kong all his life, as well as having three siblings, one older sister, a twin brother named Sheel, as well as a younger sister, named Sitara. He told me, “I have tons of friends.”

At first interviewing someone that I didn’t know proved to be much more challenging, as they were in a crowd. It is much more intimidating to interview someone that is in a crowd, so I went for someone that was sitting alone. She turned out to be very nice, and funny.

 

How to tie your shoelaces

Instructions

1. Pull the two strings towards yourself

2. Take one string and tuck it underneath the other string to form a knot, then pull on the two strings.

3. Make a loop with both of the strings.

4. Take both of the strings and place them together to create a loop.

5. Take one the loops and tuck it underneath the other loop.

6. Hold both loops and pull them together

Yes, my instructions did in fact work. I think it worked because the instructions were so simple/basic. As simple as it was it needed to be more descriptive, as a couple of times, my robot studdered and had to second guess the instructions.

Into to Programming P5

Robot Command

Pick your left foot up, then extend your leg, now put your foot down.

Pick your right foot up, then extend your leg, now put your foot down.

This is walking.

Now walk for ten steps forward.

Now stop.

Rotate counter clockwise 45 degrees.

Walk five steps forward.

Now stop.

Rotate clockwise 45 degrees.

Now walk 20 steps forward.

Now stop.

Turn 25 degrees to the left.

Now walk 20 steps forward.

Now stop.

Lift right arm up to touch the wall.

Now stop.

 

Reflection:

What worked: My function/defining how to walk worked very well, my robot understood my definition for walking pretty well.

What didn’t work: Well, I didn’t allocate to how small his steps were, instead, I should define how big his steps should be. Towards the end it was going very poorly, because my robot had not taken enough steps, resulting in my demise.

What do I need to improve on: I should definitly add more functions, including, more rotation, more steps, and clearly commands.