Gettysburg College

CS 111
Computer Science I

Fall 2025

Assignment 3

Due: Thu, Sep 18, by 11:59pm
This assignment consists of two parts: The overall theme is while loops and creating and updating variables by observing patterns in the computational process.

Preliminaries

Start DrJava and create a new project named CalcApp in folder cs111/hw . See the Readings List notes on how to create a new project.

Make sure to use several test cases for each procedure. Some of them will require more than 3 test cases to show convincing evidence of correctness.

See the Readings List on how to test non-graphical procedures.

Things That Are Not Allowed

The following are not allowed for this app. If you don't know what some of these mean, ignore them:

CalcApp (Drawing Portion)

Inside CalcApp write the procedures described below. Make sure to test each procedure carefully before moving on to the next one.

CalcApp (Math Portion)

Inside CalcApp write the procedures described below. Make sure to test each procedure carefully before moving on to the next one.

Here are the detailed descriptions of the procedures for the app along with sample test cases:


What to turn in

Turn in the Java code for the app in the Assignment 3 dropbox:

Make sure your code is saved. If when you close DrJava it warns you that the file is not saved, save it and re-upload the code.