VBScript IPO Lab Report
Copy your NameAge.vbs program from NotePad++ and paste it into the space provided below:.
' VBScript: NameAge.vbs
' Written by: Oscar Villalobos
' Date: 3/11/2017
' Class: COMP230
' Professor: Robert Estey
'Create name and age variables
name = ""
ageStr = ""
'Prompt 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.Write("Please Enter your age ......... ")
ageStr = Wscript.StdIn.ReadLine()
'Calculate Age+10 and assign to ageStr10
ageStr10 = CStr( CInt(ageStr)+10 )
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(vbCrLf & "Your Age in 10 years is ......" & _
ageStr10 & vbCrLf)
WScript.StdOut.WriteLine("End of Program")
COMP230_Wk2_IPO_Report.docx 1
This study source was downloaded by 100000845689434 from CourseHero.com on 05-05-2022
Revision Date: 1204
11:49:13 GMT -05:00
, Capture the NameAge.vbs Run from the console window and copy it into the space provided below:
COMP230_Wk2_IPO_Report.docx 2
This study source was downloaded by 100000845689434 from CourseHero.com on 05-05-2022
Revision Date: 1204
11:49:13 GMT -05:00
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ProfGoodlucK. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.99. You're not tied to anything after your purchase.