In python, %d is similar to %s, but uses numbers instead of strings. This prevents typing str() continuously. The %02d could be useful in creating leading 0s. This could be used in digital clocks that need to always have 4 digits. Example: Output: Example: Output:
Month: August 2022
Tricks For Soldering
Soldering is the process of using a soldering iron to melt some metal into liquid. The liquid is placed on something, and when it hardens the things is stuck with a conductor. In soldering, most of the time a printed circuit board (PCB) is used. A PCB is a board…
Rickroll
Rickroll is an internet prank, originated from the song “Never Gonna Give You Up“. Basically, your goal is to avoid that song, or the person Rick Astley moving. The art of Rickroll There is a website called https://www.secretrickroll.com/. This website allows you to create a “link” that leads to rickroll….
Servo Motors
In aruduino, servo motors are motors that can rotate a total of 160 degrees. Using gears and something on top of the motor, servo motors can rotate around at mildly fast speeds. The yellow wire goes to a GPIO pin. The red wire goes to 5v. The black wire goes…
CCC ’17 S3 – Nailed It!
Nailed It! is a CCC senior 3/ junior 5 question. The method to solve this is similar to Escape Room. The first thing to do to solve this problem is to create a list that measures that number of boards that are length N into the term N. Then, we…
Liquid Crystal Display – Remote Controll
Remote controll A remote controll uses something that can detect the numbers pressed on a remote controll. It is called the Infrared Receiver. Like in the name, the receiver uses infrared light, which cannot be seen by the naked eye, to detect remote controll signals. Liquid Crystal Display An LCD…
CCC ’20 S2 – Escape Room
For a Junior 5 question, Escape Room isn’t that easy. The brute-force method would be to use breadth first search and find factors, but that will almost guarantee the time will exceed the limit. To solve this, we will need to use a method that doesn’t require any calculations involving…
CCC ’21 S2 – Modern Art
Modern Art is a CCC problem. Notice that if you brush on a specific square for an odd number of times, it ends up being a gold square. If it is even or 0, it is a black square. Using this, we could create a table that has the numbers….
