Convert the following program using case statements:
# The timegreet script by Ellie Quigley
you=$LOGNAME
hour=`date | awk '{print substr($4, 1, 2)}'`
print "The time is: $(date)"
if (( hour > 0 && $hour < 12 ))
then
print "Good morning, $you!"
elif (( hour == 12 ))
then
print "Lunch time!"
elif (( hour > 12 && $hour < 16 ))
then
print "Good afternoon, $you!"
else
print "Good night, $you!"
fi