CISC 1115
Introduction to Programming Using Java
Labs Home Page

List of Labs

Lab # Description
1 Introductory lab
2 Floating point, Weighted Averages, Rounding Errors
3 Conditionals
4 Methods
5 Files
6 Logical Operators
7 Techniques I
9 Loops

About the Labs

Working on the CodeLab Exercises

The CodeLab exercises are very short (usually a couple of lines) fragments of code that focus on specific topics covered by the corresponding lecture (think of them as homework questions at the back of a text's section or chapter). They serve to help reinforce the material and also to prepare you for the larger labs. They are designed to be completed within the CodeLab Workbench (in fact, since they are not full programs, but rather fragments, they can't be completed in your IDE).

Working on the Labs

The Output Displayed for the Exercises

Exercises will often be accompanied by the details of one or more test runs. The purpose of these are to:

What the 'Sample Test Runs Aren't!

The Sample Test Runs presented as part of an exercise's instructions are examples of possible data that could be inout to the program … they are not the only possible values. In general, you cannot code your program to expect or process only those values. (Doing so is a standard newbie mistake.)

Motivation for Each Lab Exercise

Submitting the Lab Exercises to Codelab

Once you're satisfied that your program 'works', you should submit it to CodeLab:

"It 'Works' in IntelliJ, but Not in CodeLab!"

This is a standard newbie complaint … you run your code in IntelliJ and it seems to 'work', but then CodeLab rejects it. What you mean by it 'working' in IntelliJ is nothing more than no compilation errors appearing (those red lines indicating something wrong with your code), and when you actually run it you get some output that appears correct. However, there are two potential problems with that result:

About Grading ← Important!

About Deadlines and 'Freeze' Dates ← Important!

Labs will be associated with lectures … Again, all these dates will be posted in the

Only labs submitted to CodeLab are considered; there is no other mechanism for submitting your work.

'Approval' Exercises

Exercises are marked for Approval for several reasons:

A Note on the Output Displayed by CodeLab

How CodeLab Provides Feedback on Console and File Output

Note: The following display has changed a bit, but the essence is still the same.