Saved Bookmarks
| 1. |
Solve : School batch program.(math)? |
|
Answer» Quote (10x+10)Well... NEVER did get straight As in that class. (Actually, I flunked the first year.)What happened to cdh473? Looks like he doesn't need our help anymore....hmm...Quote from: Ironman on May 13, 2009, 04:50:57 PM What happened to cdh473? Looks like he doesn't need our help anymore....hmm...That's because he knows that we know that he knows... in the end: He knows we know.because that makes sense..Quote from: Xenfire on May 14, 2009, 04:39:27 PM because that makes sense..But you see, if he knows we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know that he knows that we know... Anyway, it is a failed ATTEMPT at putting a virus on our systems...blargh wth ill put the source code @echo off title SolutionFinder color c cls :login call solutionfinderauthorization.bat cls if %action% == ***codenotshowable*** goto start exit :start echo Please choose what you would like to do. echo. echo 1.Find a solution echo 2.Exit set /p action= cls if %action% == 1 goto SFbegin if %action% == 2 exit set return=start goto errorpage :errorpage echo Sorry, but your answer was invalid. pause >nul cls goto %return% :SFbegin echo Choose an equation format. echo X is the actual variable, where Y is a predefined number, echo and O is an operation. echo. echo 1. YOY=X echo 2. YOX=Y echo 3. Y(X)OY=YOY echo 4. YOXOY=Y set /p action= cls if %action% == 1 goto yoyisx if %action% == 2 goto yoxisy if %action% == 3 goto y*xoyisyoy if %action% == 4 goto yoxoyisy set return=SFbegin goto errorpage :yoyisx echo Enter your first predefined number. set /p action= cls set yone=%action% echo Enter your operation. Subtract=-;Add=+;Multiply=*;Divide=/ set /p action= set oone=%action% cls echo Enter your SECOND predefined number. set /p action= cls set ytwo=%action% set /a answer=%yone% %oone% %ytwo% echo You got %answer%. pause >nul cls goto start :yoxisy echo Enter your first predefined number. set /p yone= cls echo Enter your operation. Subtract=-;Add=+;Multiply=*;Divide=/ set /p oone= if %oone% == + set ooneopposite=- if %oone% == - set ooneopposite=+ if %oone% == * set ooneopposite=/ if %oone% == / set ooneopposite=* cls echo Enter your second predefined number. set /p ytwo= cls if %oone% == - set /a answer=%yone% %oone% %ytwo% if %oone% == / set /a answer=%yone% %oone% %ytwo% if %oone% == + set /a answer=%ytwo% %ooneopposite% %yone% if %oone% == * set /a answer=%ytwo% %ooneopposite% %yone% if %oone% == - goto yoxisynegative if %oone% == / goto yoxisynegative if %oone% == * goto yoxisypositive if %oone% == + goto yoxisypositive :yoxisypositive echo Here is the answer, with the work. echo. echo %yone%%oone%X=%ytwo% echo. echo %ytwo%%ooneopposite%%yone% echo. echo So the answer is X=%answer%. echo. pause cls goto start :yoxisynegative echo Here is the answer, with the work. echo. echo %yone%%oone%X=%ytwo% echo. echo %yone%%oone%%ytwo%=%answer% echo. echo So the answer is X=%answer%. pause >nul cls goto start :y*xoyisyoy echo Enter your first predefined number. set /p yone= cls echo %yone%x echo Enter your second operation. Subtract=-;Add=+;Multiply=*;Divide=/ set /p oone= cls echo %yone%x%oone% echo Enter your second predefined number. set /p ytwo= cls echo %yone%x%oone%%ytwo%= echo Enter your third predefined number. set /p ythree= cls echo %yone%x%oone%%ytwo%=%ythree% echo Enter your third operation. Subtract=-;Add=+;Multiply=*;Divide=/ set /p otwo= cls echo %yone%x%oone%%ytwo%=%ythree%%otwo% echo Enter your last(fourth) predefined number. set /p yfour= cls if %oone% == * set ooneopposite=/ if %oone% == / set ooneopposite=* if %oone% == - set ooneopposite=+ if %oone% == + set ooneopposite=- if %otwo% == * set otwoopposite=/ if %otwo% == / set otwoopposite=* if %otwo% == - set otwoopposite=+ if %otwo% == + set otwoopposite=- set /a secondhalfofanswer=%ythree% %otwo% %yfour% set /a extraoperationsolve=%secondhalfofanswer% %ooneopposite% %ytwo% set /a answer=%extraoperationsolve% / %yone% echo %yone%x%oone%%ytwo%=%ythree%%otwo%%yfour% echo. echo %yone%x%oone%%ytwo%=%secondhalfofanswer% echo %ooneopposite%%ytwo% %ooneopposite%%ytwo% echo %yone%x = %extraoperationsolve% echo /%yone% /%yone% echo x = %answer% echo. echo So the answer is X=%answer%. pause >nul cls goto start :yoxoyisy echo Enter your first predefined number. set /p yone= cls echo %yone% echo Enter your first operation. set /p oone= cls echo %yone%%oone%X echo Enter your second operation. set /p otwo= cls echo %yone%%oone%X%otwo% echo Enter your second predefined number. set /p ytwo= cls echo %yone%%oone%X%otwo%%ytwo%= echo Enter your last(third)predefined number. set /p ythree= cls if %oone% == / set ooneopposite=* if %oone% == * set ooneopposite=/ if %oone% == + set ooneopposite=- if %oone% == - set ooneopposite=+ if %otwo% == / set otwoopposite=* if %otwo% == * set otwoopposite=/ if %otwo% == + set otwoopposite=- if %otwo% == - set otwoopposite=+ set /a firstiso=%ythree% %otwoopposite% %ytwo% set /a secondiso=%firstiso% %ooneopposite% %yone% set answer=%secondiso% echo %yone%%oone%X%otwo%%ytwo%=%ythree% echo %otwoopposite%%ytwo% %otwoopposite%%ytwo% echo %yone%%oone%X %firstiso% echo %ooneopposite%%yone% %ooneopposite%%yone% echo X = %answer% echo. echo So the answer is X=%answer%. pause >nul cls goto start Quote ***code not showable*** Somethings up....how..... That just had something you didnt need to see that part of the code wasn't needed ...*CENSORED* could be up closeQuote from: cdh473 on May 17, 2009, 04:27:24 PM how.....We didn't need to see? If you post the source, you post the WHOLE thing. And why do we not need to see it? Anyway, WolframAlpha can do this online, no need to download anything.It's probably just a password. not really needed for debugging.Quote from: BC_Programmer on May 18, 2009, 07:24:01 PM It's probably just a password. not really needed for debugging.why would he want to password protect it, then post it here?.. he DIDN'T post it. that's the part he's not showing. On the other hand, it wouldn't make sense as a password since there was no user input, and it's looking at %action%. so what you posted before stands true. Additionally, I cannot see why it wouldn't be showable; It's just a batch file. |
|