Oxford University VBS script Essay

User Generated

Xnyxnj

Programming

Oxford University

Description

Hi, this is a easy programming task if you ahve used this language before, I just don't have the time right now. Shuoldn't take more than 15 minutes if you are experienced. Don't accept this if you aren't able to do it..

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

1) Print the sum of three numbers

2) Print the average of the three numbers

Optionally, you can save the results into a file “Results.txt” using the redirection operator or by creating the file in the script.

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 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

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Attached.

Running header: VBS SCRIPT

1

VBS script
Students Name
Institution Affiliation

VBS SCRIPT

2

VBS script
The program screenshots are below:

VBS SCRIPT

Passing command line arguments in the editor:

3

VBS SCRIPT

The output sample

Redirect output to the file:

...


Anonymous
Super useful! Studypool never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags