Computer Science Scripting Assignment

  

Instructions

Create a VBScript script (w2_firstname_lastname.vbs) that takes 3 parameters (numbers)

1) Print the product of three numbers

2) Print the sum of the three numbers

3) Print the average of the three numbers

Optionally, you can save the results into a file “Results.txt” using the redirection operator “>” see sample run below.

4) Make sure to include comment block (flowerbox) in your code.

5) Sample run:-

C:\entd261>cscript.exe w2_sammy_abaza.vbs 2 3 5 > results.txt

Submit your week 2 work in w2_firstname_lastname.txt (Please save the file as a text file and upload the text file here for final review.)

  

Requirements

Points

 

Comment block (flowerbox) with Instructions on how to run the code with   examples.

20

 

Code documentation and comments.

10

 

Assignment code including creating command line parameter

70

 

TOTAL POINTS

100

Next Question  

1. There are various selection structures that can be used in programming. What are the different relational operators used in selection structures? Provide an example of an if-then-else statement that can be used in a script that performs a system administration task.

NEED A CUSTOMIZED PAPER ON THE ABOVE DETAILS?

Submit your order now!