CS 161 Lab J - Calculator

Due Thurs Apr 11 at 11:59pm

Overview

In this lab, you will be completing a program implementing a Calculator (because math is fun!). You will be providing a Graphical User Interface (GUI) that allows people to easily interact with the calculator. You will be using the Java swing libraries to build the GUI. When executed, the program might display a calculator similar to any one of those shown below (in the order of difficulty from left to right):

(The different background colors are just because of the Windows OS interface, and will not be part of your program).

Before you begin, you might have a look at the Calculator program that comes with the operating system you are using. The calculator GUI you are developing may not be quite as graceful, but will be similar in terms of functionality (you might even say they share an interface!)

This lab will be completed in pairs. Be sure to review the pair programming guidelines. You also must work with a different partner than you have before!

Objectives

Necessary Files

You will need to download and extract the BlueJ project from the LabJ.zip file. This project will supply you with the following classes:

Details

For this lab, you will be making one new class: a CalculatorGUI Details for building this class are below:

Submitting

Grading

This assignment will be graded on approximately the following criteria: