Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with this assignment. I have this code so far but in the assignment says that I have to use a while loop. @

Need help with this assignment.

I have this code so far but in the assignment says that I have to use a while loop.

@ echo off setlocal enabledelayedexpansion echo results.txt echo Mike Corleone >> results.txt set dt=%date:~7,2%-%date:~4,2%-%date:~10,4%_%time:~0,2%_%time:~3,2%_%time:~6,2% echo %dt% >> results.txt goto :main

:main setlocal set /p choice1="Enter your first number" set /p choice2="Enter your second number"

if !choice1! == 999 goto :eof if !choice2! == 999 goto :eof

:loop

goto :loop

echo. echoo ^^

endlocal

image text in transcribed

Part 1 - Worth 5 points. Using Windows Batch in command prompt. - Call this program programl.bat Implement mod (find the remainder), with error trapping, using if and while commands, How: - Append your name, current date and time to a NEW file called results.txt - Use a simulated while loop - If the user enters the value 999 for the first or the second number, you must exit the while loop immediately immediately. immediatelv socond umbor numbers in this computation using labels, and append them to t - Ask the user to enter the first number. If it is 999, exit - Ask the user to enter the second number. If it is 999, exit - If the second number is ZERO inform the user and ask for a correct 2e the Eecond nunber is NoT a zero, do the operation, diapay a results.txt file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions