Phase 3b

Added the computeAndDisplayResult method