Our Computer Science class is really fun, and we get to do a lot of exercises and labs. The class is designed around learning Java 8. The exercises are usually a handful of short programs designed to teach us to use a certain aspect of the language, such as loops. With labs, we will often incorporate other aspects and dig deeper into what we learned in the past. Below is an example of both a lab and a set of exercises. Through these activities I have gained a solid understanding of Java Principles and look forward to learning more.
`Above is an example of a set of exercises. In this assignment, we learned about Array Lists and how to manage shifting sizes. The most challenging part was at the end, where we had to complete a Bulgarian solitaire simulator. We had to simulate a game of solitaire and record how many times it would take to achieve a solitaire through the use of Array Lists.
This lab used the Java Graphics Class to draw lines that are straight but give the effect of being curved. I extended the program to recreate the image inside and add random colors to all the lines. This program taught us more about loops and their applications. Above are pictures of two sample outputs.