Objective: Create and execute a VBScript that uses AND Logic to create a complex decision statement. Write a VBScript that is equivalent to the following pseudocode:
if x > 10 then
if x < 25 then
print X is between 10 and 25
else
print X is equal to or above 25
endif
else
print X is equal to or below 10
endif
Be sure your script includes appropriate comments.
Exercise 2: Understand OR Logic (10 points)
Objective: Create and execute a VBScript that uses OR Logic to create a complex decision statement. Write a VBScript that is equivalent to the following pseudocode:
if x = 50 then
print X
endif
if x > 60 then
if x < 65
print X
endif
endif
Be sure your script includes appropriate comments.
Exercise 3: Scripting the Windows Desktop (10 points)
Objective: Create and execute a VBScript that generates a shortcut on your desktop to one of your favorite programs.
Be sure your script includes appropriate comments.
Lab Notes
The following Lab Notes contain the steps and explanation required to complete each exercise. Try to complete the lab assignment without referring to the Lab Notes. It is part of the learning process to struggle a little when learning this material. Refer to the lecture and textbook to help you start the lab assignment. Before you start to code your solution, use pseudocode and flowcharts to help you plan what you need to accomplish. When you encounter a problem and cannot find a solution, turn to the Lab Notes. If you complete the lab assignment without using the notes, review them to be certain that you have completed the assignment correctly and that you fully understood the material. Here is the link to the Lab Notes: Week 4 Lab Notes.