Zahid_iLab2 - Date Name:ZeeshanZahid LabNumber:2 Exercise#(10Points option explicit dim userNumber userNumber = inputbox"Pick a number 1 through 10

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

View Full Document Right Arrow Icon
Date: 07/19/2011 Name: Zeeshan Zahid Lab Number: 2 Exercise # 1 Source Code and Screen Shot of the output  (10 Points) option explicit dim userNumber userNumber = inputbox("Pick a number 1 through 10:") if userNumber > 10 then wscript.echo "you picked" & userNumber _ & "which is over the allowed value by" & _ userNumber - 10 & "try again by choosing a number between 1 and 10, the number cannot be over 10." end if
Background image of page 1

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

View Full DocumentRight Arrow Icon
Exercise # 2 Source Code and Screen Shot of the output  (10 Points) option explicit dim userEntry userEntry = inputbox("Please enter a word:") if userEntry = "windows" then wscript.echo "you passed the test! windows is the correct word!" else
Background image of page 2
wscript.echo "you entered" & userEntry & "but you should have entered windows" end if
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Exercise # 3 Source Code and Screen Shot of the output  (10 Points) option explicit dim usersNumber dim theCounter usersNumber = inputbox("Enter a number:") theCounter = 0 do while theCounter <=7 wscript.echo usersNumber + theCounter theCounter = theCounter + 1 loop wscript.echo "end of seris"
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Documentation : (20 total points) Exercise1 Specification: This script basically outputs a message based on the users input. It only displays a message when a user enters a number above 10. Single alternative selection structure is used for this script.
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/15/2012 for the course COMP 100 taught by Professor Daily during the Spring '08 term at DeVry Addison.

Page1 / 9

Zahid_iLab2 - Date Name:ZeeshanZahid LabNumber:2 Exercise#(10Points option explicit dim userNumber userNumber = inputbox"Pick a number 1 through 10

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

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