In Computer Science with Mrs. Taricco, we have been learning how to code in a hands-on and fun way. This class is where we got to create the website you are on right now, starting from scratch using HTML and CSS. Even if you have never written code before, the course is designed to help you through these languages step by step, so by the end, you feel comfortable with them. Throughout the year, we moved on to learning Java, starting with the basics like data types, loops, and static arrays. Mrs. Taricco breaks down complex topics into manageable lessons, and we get plenty of practice with coding questions and lab exercises. This course is a great way to improve problem-solving skills while working with classmates to work through challenges together.
One of our assignments in class was to create a line design using Java. The challenge was to draw the image, which sounded simple but turned out to be tricky at first. We used the Applet graphics class in Java to draw the lines, and were given an example image to copy. The hardest part for this assignment was figuring out how to space the lines correctly on both the x and y axes. It took a lot of trial and error to get the right values, but each mistake led to interesting new designs. It was really fun to work through the program and then adjust it step by step until it matched the original design. In the end, the resulting design (below) was very interesting to see.
One of the programs we worked on was called "Stars," where we had to randomly generate 10 stars of different sizes and place them at random locations on the screen. The main goal was to create a dynamic display. This meant that each star would appear at a unique spot and have its own unique size. Just like with previous assignments, we used the Applet class in Java to handle the graphics again. But, this time the challenge was not only about the visuals but also about the math behind it. We had to calculate the positions for each star using trigonometry. This involved working out the angles and distances from a central point on the screen. There were a lot of calculations to get everything just right, and it made the project feel like a puzzle, making it more exciting to complete. Compared to previous assignments, the math components made this assignment more challenging but also more rewarding once everything came together.