#!/bin/tcsh

#This program takes in two numbers as arguments and performs an arithmetic operation as specified by the user
#USAGE:   switch_demo-2 

echo -n "Enter your choice Yes/No: "
set choice=$<

switch ($choice)

 case "[yY]*":
        echo "You entered Yes"
 breaksw

 case "[nN]":
        echo "You entered No"
 breaksw

 case "*":
        echo "You did not enter a correct choice such as Yes or No"
        echo "Aborting script execution"
	   exit
endsw

echo "********* Script execution successful *******************"
