@echo off

GOTO Question#5

**********************************************************************
Author   :  Cristal Ruiz
Course   :  OS 4 MW  6:25/7:40
Professor:  Michael Robinson
Program  :  Program 4
Purpose  :  Creating a bash program
Due Date :  November 13,2019

Certification :

I hereby certify that this work is my own and none of it is thw work of another person

**********************************************************************

:Question#5

@echo off &setlocal enabledelayedexpansion

FOR /L %%x IN (1, 1, 10) do (
    SET /a var=%%x %% 6
    SET /a cal=!var! %% 6
    SET /a add=!cal! +2
    echo ^(%%x MOD 6^) + 2 = !add!
    SET /a  total+=!add!
)

SET /a average=!total! / 10
echo !total! / 10 = !average! >> results.txt

GOTO Question#6

:Question#6

mkdir pgm4
cd pgm4
notepad one.txt
echo REM Cristal Ruiz >> one.txt
echo echo Cristal Ruiz >> one.txt
echo echo. >> one.txt