CSCI 1301 Lab 4

Exercise P3.4

For Lab 4, you'll ask the user for two integers, then output the sum, difference, product, average, distance (absolute value of the difference), max, and min of the two numbers. Call your program Pair.java, and implement it in a single file (no other class file needed as mentioned on p. 127).

At the top of each file, place the following lines of comments:

// FileName.java
// by Your Name
// CS1301
// Lab #
// Date

Due Thursday, September 22, at the beginning of class. Make sure to save in a folder (if using a USB drive) called cs1301/lab1/, as well as in a folder on your P: drive called P:\web\cs1301\lab1. Programs will be turned in online by the beginning of class.