Finished script and output for full credit

[Assignment: 3 Problem: 1]