Course Info

#Programming Fundamentals 1

This is an introductory Programming module and assumes no prior knowledge of programming.

In this module, we will introduce you to the Java programming language through the Processing Development Environment (PDE) and then IntelliJ.

First, we will work through non-complex problems that will introduce you to the basic constructs of programming languages i.e. Sequence, Selection and Loops. You will also learn to use variables, different data types, manipulate the data, logical operators and methods. This will be done using processing.org

Then, using IntelliJ, we will progress to more complex problems that will briefly introduce you to object-oriented programming and data structures. You will do a deeper dive into both of these areas in the semester 2 module, Programming Fundamentals 2.

Challenges

  • For each challenge listed below, create a new sketch.

  • In this module, the Challenge Exercises are exactly that…challenges! So if you can’t do them straight away (or at all), don’t panic. In most cases, they require additional thinking and research. You may need to visit the Processing website for additional information to attempt them.

  • Note, the sequence that the shapes are drawn in these challenges matters!

Challenge 1

Replicate the beats (Dr. Dre) logo as shown in the picture below:

Dr. Dre logo

Challenge 2

Write the code that will draw the typical control buttons you would see on a media player. An example image would be:

Media player controls Hint: you will need to read up on the triangle() function on the Processing website.

Challenge 3

Design your own picture, making sure to use combinations of Circles, Ovals, Squares, Rectangles and Lines.