Comp 230

Submitted by: Submitted by

Views: 10

Words: 785

Pages: 4

Category: Science and Technology

Date Submitted: 02/21/2016 05:08 PM

Report This Essay

Student Name | Fluker,Harvis | Class | COMP230 | Date | 15 Jan 2016 |

VBScript IPO Lab Report

' VBScript: Harvis34.vbs

'Written by: Harvis Fluker

'Date: 01/15/2016

'Class: COMP230

'Professor: Charlotte Mckenzie

'========================================================

'Create name and age variable'

'name= ""

'ageStr= ""

'Prompy user for name and age

WScript.StdOut.Write("Please Enter your full name..............")

name = WScript.StdIn.Readline()

WScript.StdOut.WriteLine()

WScript.StdIn.Write("Please Enter your age.......")

ageStr= WScript.StdIn.Readline()

' Calculate Age+10 andassign to ageStr10

ageStr10= Cstr( CInt(34)+10)

WScript.StdOut.WriteBlankLines(2)

WScript.StdOut.WriteLine("Your Name is" & vbTab & vbTab & name)

WScript.StdOut.WriteLine("Your Age is" & vbTab & vbTab & ageStr)

WScript.StdOut.WriteLine(vbCrLf & "Your age in 10 years is ......" &_

ageStr10 & vbCrLf)

Wscript.StdOut.WriteLine("End of program")

' VBScript: Harvis34.vbs

'Written by: Harvis Fluker

'Date: 01/15/2016

'Class: COMP230

'Professor: Charlotte Mckenzie

'========================================================

'Create name and age variable'

'name= ""

'ageStr= ""

'Prompy user for name and age

WScript.StdOut.Write("Please Enter your full name..............")

name = WScript.StdIn.Readline()

WScript.StdOut.WriteLine()

WScript.StdIn.Write("Please Enter your age.......")

ageStr= WScript.StdIn.Readline()

' Calculate Age+10 andassign to ageStr10

ageStr10= Cstr( CInt(34)+10)

WScript.StdOut.WriteBlankLines(2)

WScript.StdOut.WriteLine("Your Name is" & vbTab & vbTab & name)

WScript.StdOut.WriteLine("Your Age is" & vbTab & vbTab & ageStr)

WScript.StdOut.WriteLine(vbCrLf & "Your age in 10 years is ......" &_

ageStr10 & vbCrLf)

Wscript.StdOut.WriteLine("End of program")

Copy your...