Zahid iLab4 - Date:07/31/2011 Name:ZeeshanZahid LabNumber:4

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Date: 07/31/2011 Name: Zeeshan Zahid Lab Number: 4 Exercise # 1 Source Code and Screen Shot of the output  (10 Points) 'programmer: Zeeshan Zahid 'created on 7/31/2011 'purpose: Demonstrates AND-Logic, continues to ask for input until user enters a negative number option explicit dim x x = inputbox("enter a number or a zero to exit:") do while x > 0 if x > 10 AND x < 25 then else if x >= 25 then end if end if X = inputbox("enter a number or a zero to exit") Loop
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Exercise # 2 Source Code and Screen Shot of the output  (10 Points) 'programmer: Zeeshan Zahid 'created on 7/31/2011 'purpose: Demonstrates AND-Logic, continues to ask for input until user enters a negative number option explicit dim x x = inputbox("enter a number or a zero to exit:")
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
do while x > 0 if x = 50 OR (x > 60 and x < 65) then end if x = inputbox("enter a number, enter zero to exit:") loop
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Exercise # 3 Source Code and Screen Shot of the output  (10 Points) 'programmer: Zeeshan Zahid 'created on 7/31/2011 'purpose: creates a shortcut on my desktop to internet explorer Dim objShell, strDir Set objShell = CreateObject("wscript.Shell") strDir = objShell.specialFolders("desktop")
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

Zahid iLab4 - Date:07/31/2011 Name:ZeeshanZahid LabNumber:4

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online