<<Documentation
**************************************
Author    : Cristal Ruiz
Course    : OS 4 MW 6:25-7:40
Professor : Michael Robinson
Program   : PGM 4
Purpose   : To create a program only using terminal.
Due Date  : Novemeber 13,2019

I certify that this work is my own alone.
**************************************
Documentation

echo Hello my name is: Cristal Ruiz
echo My User Name is : $USER
echo Todays date and time is: `date`

echo This file has `cat ruizCpgm4.sh | wc -l` lines
echo This file has `cat ruizCpgm4.sh | wc -w` words
echo This file has `cat ruizCpgm4.sh | wc -c` bytes

echo Please Enter Any Number
read num1
result=`expr $num1 \* 2`
echo "$num1 * 2 = $result"

echo 'Press Any Key To Continue'
read anykey
clear

echo Enter a Line of Numbers, Leaving One Space Between Each Number And Press Enter When Done
read line
for num in $line
do
    echo $num
    sleep 1
    total=$((num + total))
done
echo $line = $total

while true
do
    echo Please Enter A Number That Is Divisble By 5
    read dividenum
    modcheck=`expr $dividenum % 5`
    echo "$dividenum MOD 5 = $modcheck"
    if [ $modcheck -eq 0 ]; then
        break;
    fi
done
