Homework 6 Solution


Introduction

These assignments are essentially the basic versions of Programs 1 through 3 for Homework 6. In Program 1 I changed the Scanner class to return "EOLN" when it sees the end of each input line, which works better for keyboard input (and also for printing input taken from a file). In Program 3 I decided to draw small circles at each mouse click, primarily so the user could see where s/he had made that first click (plus it just generally looks better). Neither were required to receive full credit. Neither were prohibited to receive full credit.

Download All Programs

This .zip file contains all the code below.

Program 1

Program 2

Program 3