Student Name | | Class | COMP-230 | Date | 9-14-2012 |
VBScript IPO VBox Lab Report
' VBScript: NameAge.vbs
' Written by:
' Date: 9-14-2012
' Class: Comp230
' Professor:
' Create name and age variables
name = ""
ageStr = ""
' Promt User for Name and Age
WScript.StdOut.Write("Please Enter your Full Name ")
name = WScript.StdIn.ReadLine()
Wscript.StdOut.WriteLine() 'Skip 1 Line
WScript.StdOut.WriteLine("Please Enter your age ")
ageStr = WScript.StdIn.ReadLine()
ageStr10 = CStr( CInt(ageStr)+10 )
' Display Name and age Value
WScript.StdOut.WriteBlankLines(2) 'Skip 2 Lines
WScript.StdOut.WriteLine("Your Name is " & vbtab & vbtab & name)
WScript.StdOut.WriteLine("Your Age is " & vbtab & vbtab & ageStr)
WScript.StdOut.WriteLine("Your Age in 10 years is ......" & _
AgeStr10 & vbcrlf)
WScript.StdOut.WriteLine("End of Program")
' VBScript: NameAge.vbs
' Written by:
' Date: 9-14-2012
' Class: Comp230
' Professor:
' Create name and age variables
name = ""
ageStr = ""
' Promt User for Name and Age
WScript.StdOut.Write("Please Enter your Full Name ")
name = WScript.StdIn.ReadLine()
Wscript.StdOut.WriteLine() 'Skip 1 Line
WScript.StdOut.WriteLine("Please Enter your age ")
ageStr = WScript.StdIn.ReadLine()
ageStr10 = CStr( CInt(ageStr)+10 )
' Display Name and age Value
WScript.StdOut.WriteBlankLines(2) 'Skip 2 Lines
WScript.StdOut.WriteLine("Your Name is " & vbtab & vbtab & name)
WScript.StdOut.WriteLine("Your Age is " & vbtab & vbtab & ageStr)
WScript.StdOut.WriteLine("Your Age in 10 years is ......" & _
AgeStr10 & vbcrlf)
WScript.StdOut.WriteLine("End of Program")
Copy your NameAge.vbs program from NotePad++ and paste it into the space provided below:.
Capture the NameAge.vbs Run from the console window and copy it into the space provided below:
cscript NameAge.vbs
Process started >>>
Microsoft (R) Windows Script Host Version...