Computer Science Related

Unit IV Problem Solving Basic DOS Command s This activity contains two parts; Part 1 will be practice exercises in DOS, and Part 2 will be your assignment that you must complete and submit for grading. Part 1 : Practice Exercise s 1. To launch the DOS simulator, go to http://www.pcjs.org/devices/pc/machine/5160/mda/256kb/ 2. Be sure to use Chrome, Safari, Firefox, or Internet Explorer browsers (v9.0 and up). You may need to wait several seconds for the DOS window to fully load (Figure 1). Figure 1 3. Click on the blinking cursor and then type the date. Use the format shown on t he screen (01-07 -2016 ). Now, press the Enter key (Figure 2) . Figure 2 4. Click on the blinking cursor and then type in the time using the format shown on t he screen (0:04:0 0.0). Now, press the Enter key (Figure 3) . Figure 3 5. You have now set the computer’s date and time. N ext , let’ s take a look at the A volume root directory. Click o n the blinking cursor and type “dir ” (directory) and then press the Enter key (Figure 4). Figure 4 6. A listing of the directory contents will appear. Next, we will create a directory using the “md ” (make directory) command. At the prompt, type “md TEST ” and press the Enter key (Figure 5) . This makes a new directory called TEST. Figure 5 7. Type “dir ” to check that the TES T directory is present (Figure 6 ). Figure 6 8. Change t he directory to TEST using the “cd ” (change directory) command. For example, type “cd TEST ” and press the Enter key (Figure 7) . This will change the directory focus from the A volume to the TEST directory. Figure 7 9. Create a subdirectory called DATA. Type “md DATA ” (Figure 8) . This will create a new subdirectory inside the TEST directory. Figure 8 10. Now , you should have a new subdirectory called DATA inside the TEST directory . Next, let’s remove the DATA directory using the “rd” (remove directory) command. But first, we must exit the DATA sub dire ctory. Type “cd ..” and then press the Enter key to change the focus to the TEST directory (Figure 9) . Be sure you have a space between “cd ” and the “..”. Figure 9 11. Now , we can delete the DATA sub directory. Type “rd DATA ” and then press the Enter key (Figure 10). Figure 10 12. The DATA sub directory has been deleted and the focus is now on the TEST directory. The next thing we’re going to do is create a text f ile in DOS. At the prompt , type “copy con sample.txt ” (Figure 11). Figure 11 13. At the prompt , type “This is a sample text file created in DOS ” and then press the CTRL and Z keys to end the input . Press the Enter key to return to the command line (Figure 12) . Figure 12 14. Now, let’s view the file in DOS . At the prompt, type “type sample.txt ” (Figure 13). Figure 13 15. The text in the file will be displayed on the screen . 16. Now, delete the text file with the “del ” (delete) command. At the prompt type “del sample.txt ”. This will delete the file (Figure 14) . Figure 14 Part 2: Assignment 1. Launch the DOS simulator if you haven’t already done so at http://www.pcjs.org/devices/pc/machine/5160/mda/256kb/ 2. Create a directory with the “md ” command . U se your first initial and last name to name the new directory (for example, JSMITH ). 3. Make a screen shot and paste this in an MS W ord document. 4. Create a subdirectory with your middle name . 5. Make a screen shot and paste this in the Word document. 6. Next, create a text file in the sub directory using the “copy con ” command. Name the text file “mytextfi le.txt ” and type at least three sentences of text. You can type information such as a short introduction to yourself. When finished, quit by using the “CNTL -Z” keys and then display the text in the file. Take a screen shot and paste to the W ord document. 7. The MS Word document should have a Title page and contain three screen shots. Submit the file for grading.