Answered step by step
Verified Expert Solution
Question
1 Approved Answer
program. (Hint: Similar to 'power.txt' ). Submit the following: 1. code (you may have to save a copy of your batch file as a text
program. (Hint: Similar to 'power.txt' ). Submit the following: 1. code (you may have to save a copy of your batch file as a text file and upload it to BB) 2. a screenshot of the output of your command prompt when you ran the batch file. Save it as a png file and submit. Qecho off echo "This is addition of two numbers" set /pa=" "num1 " set /bb=" num2 2 " set /as=a+b echo sum =%s% pause Qecho off echo "This is finding the power of a number" :loop set /p a="num1 " set /p pow="power " if \%pow\% LSS 0 goto step1 if \%pow\% == 0 goto step2 set /a result=1 set /a power=0 :loop1 set /a result=\%result\% * \%a\% set /a power=\%power\%+1 if \%power\% GEQ \%pow\% goto step3 goto loop1 :step3 echo "power \%pow\% of the number \%a\% is \%result\% goto step4 :step2 echo "power \%pow\% of the number \%a\% is 1 " goto step4 :step1 echo "invalid entry" :step4 echo "do you want to enter another number ?" set /p option=" y " if \%option\% == y goto loop pause
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started