Lab1, due Tuesday, Jan 10

Problem Solving Strategy -- due Thursday, Jan 5

Because I want to be sure you're on the right track, before you go about coding this problem, email me (zander@u.washington.edu) from any account (school, work, personal) your strategy for solving this problem. This should be very brief, may only be a few sentences.

I simply want to be sure you've thought about this since it's due one week from today and I won't see you between Thursday and Tuesday.

For example, my strategy for finding the largest number is as follows. Save the first number as the current largest number. Compare each other number to the current largest number, and if it's larger, then save it as the current largest number.

Problem

Download the sample program (right click on the link to save),   largestNum.html.   Modify the example so that your html user interface will drive your VBScript code to still take input to accept three numbers, but when it displays them, they will be sorted.

In other words, the first number displayed will be the smallest number (no matter what the user enters); the second number displayed will be the second smallest; and the third number displayed will be the largest.

There are six possible combinations or orderings, for example:
      3   4   5
      3   5   4
      4   3   5
      4   5   3
      5   3   4
      5   4   3
Be sure you test all of them. All these different inputs should display   3   4   5.

There are several different ways to solve this problem. For the different ways, you may need to use the "and" logical operator in an "if" statement. In an "if", the condition is only true if both conditions are true. For example,
      if a < b and b < c then
is only true if both a < b is true and b < c is true.

Something else you may need is that less than or equal to is <= . Greater than or equal to is >= .