Computations of Quandle Cocycle Invariants of Knotted Curves and Surfaces