Added ternary operator

Used a ternary operator to output a result depending on the amount
entered by the user.  This is ready for instructor review.