Inf1 OP : Lab Sheet Week 2
Overview

This week’s exercises cover a variety of topics:

  • more practice on reading values from the command-line, and then printing results by carrying out various operations on the input;
  • using conditional (if-then-else) statements;
  • using for loops.

We will also briefly talk about different types of errors in programming — compile vs runtime vs logic errors.

Note

From this week, you should be using the IntelliJ IDE and JUnit as explained in the Introduction to Development Tools.

Note

There are three types of exercise here: warmup, core, and optional. The warmup exercises are to give you a refresher of material that you may have already encountered. As the name suggests, you should definitely do the core exercises. We recommend that you try the optional exercises for extra practice.