Archive

Blog Quick Access


Recent Blog Posts


  • Java Programming Homework
    Since lab exams start the week after reading week (labs from the 22nd–28th), I wanted to provide some practice homework. Please attempt these questions before looking at the solutions. The solutions may include in-file documentation that explains the reasoning behind them. Homework 1 (functions, for loops) Empty Java File Link (Contains a semi-setup environment for you) Create functions to draw various polygons — Equilateral Triangle, Square, and Circle — at a position (x, y) with a given size. Include an option to fill the shape (hint: use a boolean parameter). Your square function should be easily adaptable for drawing rectangles.… Read more: Java Programming Homework
  • Introduction to Java Programming
    Example 1 Disclaimer: Although I am a TA at Brock, this website is in no way funded or associated with the university. It is something I do in my spare time for fun. Before we begin, I want to say that if you are serious about learning programming, now is the time to put on your critical thinking hat. You cannot expect someone to hold your hand through every programming problem, so it’s best to start learning how to think about programs now. If something here doesn’t make sense, stop and think it through. Programming is 90% debugging, which comes… Read more: Introduction to Java Programming