Final Project

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. The final project consists of two parts. The first part is to be done in class and the second part is due by Saturday, April 30, 11:59pm.

In class assignment

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
Jonson, Danielle    87 12 78 23 78
Clinton, Bob 94 78 68 87 78
True, Jackie     78 12 68  86
Fisher, Drew     99 99 86 99 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 Total AVG"). Please add the Total column and the AVG column at the end of the table (note that the AVG column contains the Total divided by 5 and not the actual average of the grades) and also add the last row that should contain the average value of each exam column. You script should also make the table looking good. For example the file above should look like
The named arguments are:

Take-home assignment

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. Please provide extensive information to describe each argument and provide several examples demonstrating possible usage.

Add two more arguments:

Additional notes