Skip to main content

Labs

L01 - Visual Studio Code (VS Code) Lab

Install Visual Studio Code from FIRST, you will need their version with WPILib. Link In this exe...

L02 - Soda Can Lab

In this exercise, we're going to implement a class SodaCan. This class has a constructor that acc...

L03 - Coupons

A supermarket awards coupons depending on how much a customer spends on groceries. For example, i...

L04 - Iteration Lab - Part 1 - Nested For Loops

We can determine if a number is even or odd by checking the remainder after dividing the number b...

L04 - Iteration Lab - Part 2 - The Three Loops

Enter the following program and fill in the missing pieces so that the three different styles of ...

L05 - Using Arrays

Create a new class named UsingArrays. Using the lecture slides as a guide, declare and initializ...

L06 - Bank Account Lab

In this lab, we'll implement three classes: BankAccount, CheckingAccount, and BankAccountTest. As...

L07 - Shapes Lab

In this lab, we'll work with Abstract Classes. Start VS Code. During the lecture we discussed th...

L08 - Autopilot Interface Lab

In this lab, there is no main method, we are not running the code, just checking if it compiles w...

L09 - ReverseIt Lab

Write a program that reads in a file and writes each line backwards to an output file. Below is a...

L10 - Runtime Exceptions Lab

Runtime Exceptions Lab Using the lecture slides as a guide, In a new class, instantiate an array...

L11 - Designing Exception Types Lab

In this lab, we'll create our own exception class for the BankAccount class to handle the case wh...

L12 - Recursion Exercise

Part A – Fibonacci A recursive algorithm can be very fast. Sometimes it's the only solution to a ...

L13 - Finite State Machines

Introduction – Making Change Finite State Machines(FSMs) are a method to organize a system of in...