Skip to main content

INF1B - top navigation

  • Learn
  • Piazza
  • DRPS

Breadcrumb

  1. Home
  2. INF1B: Informatics 1 - Object Oriented Programming
  3. INF1B: Schedule

INF1B: Week 1: Intro and Basics; Conditionals and Loops

Week highlights

By the time you have completed this week, you should understand:

From Lecture 1:

  • what object oriented programming is and why focussing on objects can be helpful
  • what the role of classes is in OOP and how to create one
  • how to compile and run a program
  • some common data types
  • how to do some basic arithmetic

From Lecture 2:

  • Why conditionals and loops are important in coding
  • How a conditional loop is structured
  • What a while loop is for
  • The difference between a while loop and a for loop, and how you decide which to choose
  • Exiting loops early
  • How to nest conditionals

Feedback form

If you've got any thoughts on the course, this week's feedback form can be found here: 

Introductory lecture

This contains all the info about the course - where, when and how things will happen - that we covered in the first lecture.

  • Slides: logistics-lecture.pdf

Lecture 1: Introduction and Basics

  • Slides: 01-intro.pdf

Lecture 1 ➡ Java Tutorial:

  • Read Chapter 1. Getting Started, but skip NetBeans subsection in section The "Hello World!" Application (we use IntelliJ, not NetBeans as our IDE). Try the exercises at the end.
  • Skim Chapter 2. Object-Oriented Programming Concepts (we will come back to this later).
  • Read part of Chapter 3. Language Basics, up to section Expressions, Statements and Blocks, but skip the subsection on Arrays.

Lecture 2: Conditionals and Loops

  • Slides: 02-control.pdf

Lecture 2 ➡ Java Tutorial:

  • Read the rest of Chapter 3. Language Basics from Expressions, Statements and Blocks to the end of the chapter.

Lecture 2 ➡ Objects First:

  • Read appendices C.2 Boolean expressions, C.3 Short-circuit operators, D.1 Control structures, D.2 Selection statements, and D.3 Loops

Tutorial

There are no tutorials this week. Instead, if you haven't already, you should walk through the self-paced getting started materials (see the getting started page in this course).

Lab exercises

This week's lab exercises cover introduction to tools, main function, print output and command line arguments. There are four core lab exercises. You can find them in the 'INF1B: Labs Site' page from the navigation links.

You can also use lab sessions to get support for installing the tools you will need for the course, if you are having trouble getting through the material in the Getting Started page.

What should I be doing with assessment?

Nothing so far - don't worry about it this week.  This week, you just have to do your module test and survey.

Lecture recordings

Due to the problems with recording lecture 2, I am making last year's recording of lecture 2 available.  This is in live recordings, exactly where you'd expect this lecture to be.  It covers a little more material as there were fewer disasters last year, so if you watch the whole thing you'll get a head start on next lecture.

License
Creative Commons - Attribution Share A Like

Book traversal links for INF1B: Week 1: Intro and Basics; Conditionals and Loops

  • INF1B: Schedule
  • Up
  • INF1B: Week 2: Arrays; Functions

Navigation links

  • INF1B: Getting Started: setting up the tools you will need for this course
  • INF1B: Resource List
  • INF1B: Schedule
    • INF1B: Week 1: Intro and Basics; Conditionals and Loops
    • INF1B: Week 2: Arrays; Functions
    • INF1B: Week 3: Classes and Objects; Testing and Debugging
    • INF1B: Week 4: Java API; Collections
    • INF1B: Week 5: Stack vs Heap; Abstraction and Modularisation
    • INF1B: Week 6: Creating classes; Refactoring
    • INF1B: Week 7: Inheritance
    • INF1B: Week 8: More Inheritance plus time for assignment
    • INF1B: Week 9: Abstract Classes and Interfaces; Object Design
    • INF1B: Week 10: Version Control
    • INF1B: Week 11: Catch-up Week
  • INF1B: Assessment
  • INF1B: Tutorials
  • INF1B: Labs
  • INF1B: Labs Site
RSS feed

Opencourse privacy & accessibility statements; contact Informatics, ILTS.