Content 1
I learnt how to use LEGO Technic parts to create different designs. Using the coding concept of conditionals (if-else) together with various sensors, I coded my designs to do certain actions only if a specific condition is met. One of my favorite builds was a catapult that launches if the touch sensor is activated!
Using an ultrasonic sensor, I re-created the door of a shopping center that opens automatically when someone stands within range. This project combined block‑based coding with robotics to solve real-world problems!
In this project, I created a game called "WhatAnimal?" using Pygame. I love animals, so I wanted to design a game where each turn shows a picture of a different animal for you to guess! I used my passion for animals and my curiosity about coding to make this fun challenge.
To build this game, I used object-oriented programming (OOP) to organize my code into clear, manageable parts. I made separate classes for the game screen, for drawing the animal images, and for keeping track of scores and instructions. It was like building with LEGO blocks – each piece worked on its own, but together they formed an awesome game.
In "WhatAnimal?", each round shows a different animal, like a cat, dog, elephant, or even a zebra! You get to choose the right animal from four options, and there’s a timer to add a bit of excitement. This made the game fun and fast-paced, and it helped me learn how to handle key presses and events to make the game interactive.
Overall, "WhatAnimal?" is not just a guessing game – it’s a playful adventure that shows how coding can be creative and exciting. I hope you have as much fun playing it as I did making it!
This project shows how to calculate the remainder when one number is divided by another. It’s a great way to practice using arithmetic and the modulo operator (%).
This program checks if a given year is a leap year by using if-else statements to handle divisibility by 4, 100, and 400. It demonstrates how to make decisions in code based on multiple conditions.
This game challenges you to decide if a number is prime by using if-else statements. It’s a fun way to reinforce the concept of prime numbers and divisibility in code.
This project is a simple login system that checks if the entered username and password match preset values. If they do, the user is logged in; otherwise, they must try again. It demonstrates how if-else statements handle multiple outcomes based on user input.
In this project, I tracked the production rate of a calculator factory that follows an arithmetic progression. I calculated the number of calculators produced on day 30 and the total after 30 days. This shows how loops can handle repeated calculations for real-world scenarios.
In this project, I managed an imaginary library's inventory using a for loop to calculate the number of books on day 20 and the total after 20 days. This project shows how for loops make it easy to perform repetitive tasks.
In this project, I used a while loop to reverse a word and check if it is a palindrome. The loop goes through every letter until the word is reversed. This is important because while loops let me repeat actions until they’re done, which is useful for checking words.
In this project, I built a countdown timer that uses a while loop to count down from a starting number until it reaches 1. This is important because it shows me how to repeat an action until a condition is met.
I participated in the 2024 Coding Olympics by Science Centre Singapore from 30 July to 4 August 2024 and achieved a Top 20 finish in Category B. I met so many new friends and learnt a lot about coding!