Worth 0.50 points. - Using Windows terminal commands, create a Windows batch file named: yourLastNameFirstN
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Worth 0.50 points. - Using Windows terminal commands, create a Windows batch file named: yourLastNameFirstN
Worth 0.50 points. - Using Windows terminal commands, create a Windows batch file named: yourLastNameFirstNameInitialWindowsOSpgm3.bat - Using a Windows editor, append the following data to your *.bat file USING MULTI-LINE COMMENTS (labels, goto) or single line comments: ******************************************************************** Author : Your Name Course : OS section. Example OS1, OS2 OS3, OS4 Professor : Michael Robinson Program # : Number and 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. *********************************************************************/ 5) Worth 4 points. Using Windows batch. topic: Creating and using the variables FirstNumber and SecondNumber, Implement division by 0, with error trapping, using if and sumilating while loops Using the NOTEPAD editor, append to your *.bat file, all the commands needed so that when you execute your bat file, it will produce the following: How: a) using ANY Windows editor, append to your .bat file commands that will do the following: b) Append your name and CURRENT running date and time to a NEW file called results.txt "CURRENT running date" means, when the program is executed the CURRENT running time will be appended to your results.txt file c) Using the variables: FirstNumber and SecondNumber, use a while loop. d) Ask the user to enter the FirstNumber. e) If the user enters the value 22 for this FirstNumber, you must exit THIS Batch SECTION immediately. f) Ask the user to enter the SecondNumber. g) If the user enters the value 44 for this SecondNumber, you must exit THIS Windows batch SECTION immediately. h) If the SecondNumber is ZERO inform the user that you CAN NOT divide by ZERO, and ask for a correct SecondNumber only, KEEPING YOUR FirstNumber. i) If the SecondNumber is NOT a zero, divide FirstNumber by SecondNumber then display all numbers on this computation using labels, and append all numbers on this computation using labels to the results.txt file. example: 4 divided by 1 = 4
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!