#!/bin/csh -f

if ( ! -e calculator.out ) then
   echo File \"calculator.out\" not found.
   exit 1
endif

if ( { diff -w calculator.out calculator.sol } ) then
   echo "PROGRAM ACCEPTED."
else
   echo "WRONG OUTPUT."
endif

