Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 - Worth 0.75 points. Using Windows batch Scripting. - Using Windows terminal command, create a bat file named: yourLastNameFirstNameInitialPgm4.bat - Using the NOTEPAD editor,

 1 - Worth 0.75 points. Using Windows batch Scripting. - Using Windows terminal command, create a bat file named: yourLastNameFirstNameInitialPgm4.bat - Using the NOTEPAD editor, append the following data to your *.bat file USING SINGLE LINE COMMENTS FOR EACH LINE ******************************************************************** Author : Your Name Course : OS section. Example OS1, OS2 OS3, OS4 Professor : Michael Robinson Program # : Program Purpose/Description { A brief description of the program } Due Date : MM/DD/YYYY Certification: I hereby certify that this work is my own and none of it is the work of any other person. *********************************************************************/ 2 - Worth 1.75 points. Using Windows batch Scripting. topic: Implement division by 0, with error trapping, using if and label loop commands, - Using the NOTEPAD editor, append to the *.bat file, all the commands needed so that when you execute your bat file, it will produce the following: a) Append your name, current date and time to a NEW file called results.txt b) Using two variables: FirstNumber and LastNumber, use a label loop. c) Ask the user to enter the first number. d) Ask the user to enter the second number. e) If the user enters the value 66 for the first or the second number, you must exit the loop immediately, and terminate this section ONLY. f) If the second number is ZERO inform the user that you CAN NOT divide by ZERO, and ask for a correct second number. g) If the second number is NOT a zero, do the division, display all numbers of this computation using labels, and add the same to the results.txt file. example: 4 divided by 1 = 4 3 - Worth 1.75 points. Windows batch Scripting. - Using the NOTEPAD editor, append to the *.bat file, all the commands needed so that when you execute your bat file, this file will produce the following: a) Use a for loop from 1 to 10. b) Find the results of calculating each number from (1 to 10 mod 6) + 2. c) After the for loop ends, display the average for all previous results and append them to the results.txt file. 4 - Worth 1.75 points. Using Windows teminal mode commands ONLY - Using the NOTEPAD editor, append to the *.bat file, all the commands needed so that when you execute your bat file, this file will produce the following: a) Create a directory called pgm4- b) Go to folder pgm4 c) Create a file called one.txt d) Insert into the one.txt file your name using a single line comments e) Insert into the one.txt file the command that will display your name f) Insert into the one.txt file the command that will display one empty line 

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Distinguish an agent from an independent contractor.

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago