Project 4

In this project you need to demonstrate all your knowledge about WSH. You need to write a script that reads a text file and converts it to either Excel, Word, or HTML format. This script also needs to connect a network printer and print the file to the printer if needed.

This script should take one unnamed argument and a set of named arguments. The unnamed argument is a text file that has the following format: each line of the file contains the name of a student and grades of the student. fields separated by tabulation symbols. If one or more grades are missed, then you may encounter two or more sequential tabs. Here is an example of a file

Smith, Bob    87 94 78 23 78
Miller, David 94 78 68 87
Gold, Sam     78 87 68  86
Li, Sheng     99 99 86 68 80
Your script should start Excel and read the whole file into the excel table. The very first row of the table should contain names of the columns ("Name Exam1 Exam2 Exam3 Exam4 Exam5 Sum"). Please add the Sum column at the end of the table and also add the last row that should contain the average value of each column. You script should also make the table looking good. For example the file above should look like
The named arguments are:

If the script is not given enough arguments, it should use ShowUsage() method of the WScript.Arguments object. That means, of course, that you need to write your script as WSF file and specify all the arguments of the script inside the <runtime> tag.

Due day is Sunday, May 2, 2004 at 11:59pm.