代写代考 ICT373: Session 1 Lab

ICT373: Session 1 Lab
(* marked ones are more important than others)
1. Use a DOS (command prompt) window to test pipe and filter commands. Try examples of pipelines using dir, sort and grep. Try different regular expressions with grep.
(Note: GREP for windows is available on the web. If you do not have access to GREP, you can use the command line tool FINDSTR which emulates GREP. For information on FINDSTR, enter FINDSTR/? at the command prompt.)

Copyright By PowCoder代写 加微信 powcoder

Below are some suggestions for exercises to attempt:
a) see if dir /b | sort | grep ¡°x¡± > m.txt works.
b) write a pipeline using grep to put into e.txt all the files whose names start with a lower case letter
c) ditto, but files with only lower case letters on both sides of a full stop.
d) find all the lines in a big text file that do not have the capital letter A in them.
e) ditto, but do have capital B as well as no capital As. (do this in two ways: via one regular expression and via a pipeline of several greps).
2. Use the browser to display files with extensions .htm, .html and .txt in the local directory. View them via 3 methods:
(a) find and open them under the file menu of the browser.
(b) drag and drop them into the browser from the Windows Explorer.
(c) while displaying them in the browser, view the Page Source (under browser¡¯s View menu). This is a useful way of learning new ways of using HTML.
Note: use example files from the unit LMS site and local network sites.
3. Use a text editor to create your own HTML page based on example ICT373T2Ex1.html. Eg, make a web page containing the Murdoch logo as a link to the Murdoch home page.
Note: Programmer¡¯s File Editor (available on-line) is a good text editor to use but Notepad will do.

4. Write and test an HTML page containing internal links (i.e., a link to take you somewhere else in the same page) and a form containing two text boxes and a button (which sends the info to http://www.it.murdoch.edu.au/cgi-bin/reply1.pl). [as with other exercises in ICT373, and as in real life, you may need to do a bit of research here: chase up information via the Web or look at other people¡¯s source code]
5. Add a JavaScript function to add the contents of one box to the other (assuming that they contain numbers). Replace the submit button by an ¡°add¡± button so that the JavaScript function is called when the button is pressed.
6. * Add JavaScript functions to check the text box input and display an error message in an alert box. Use run-time checking to check that a text box contains a number. Develop it as a user interface to validate user input before allowing it to be submitted to the CGI program. Add batch processing to check for numbers.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com