i need someone to write some pseudo code into .sh or java if you do .sh please also include a .bat version also () mean comment not to be used but what should be there also i use ping for example but it should still be use in translation
code:
:z
set background color (black)
set text color (windows cmd bright green)
echo "question Y/N"
read Y/N
if Y/N=Y then goto A
else if Y/N=n then echo "then why did you download this program" goto b
else goto c
:a echo "question 1option/2option"
:b wait (enough time to be read) exit
:c echo "unrecognized command restarting program" wait (enough time to be read) goto z
echo "options"
read options
if options=1 then echo "enter something"
read something
set something=x goto d
else if options=2 then echo "enter something else"
read something
set something=y goto d
else goto c
:d
echo "start? Y/N"
read Y/N
if Y/N=Y then ping x/y(witch ever was chosen)
else if Y/N=n then exit
else goto c
code:
:z
set background color (black)
set text color (windows cmd bright green)
echo "question Y/N"
read Y/N
if Y/N=Y then goto A
else if Y/N=n then echo "then why did you download this program" goto b
else goto c
:a echo "question 1option/2option"
:b wait (enough time to be read) exit
:c echo "unrecognized command restarting program" wait (enough time to be read) goto z
echo "options"
read options
if options=1 then echo "enter something"
read something
set something=x goto d
else if options=2 then echo "enter something else"
read something
set something=y goto d
else goto c
:d
echo "start? Y/N"
read Y/N
if Y/N=Y then ping x/y(witch ever was chosen)
else if Y/N=n then exit
else goto c