first problem complete. tryig to figure out second one
wrote pseudocode for each problem in assignment