CSS 341 - Machine Problem #0  (MP0)

 

Problem Solving with Conditional Constructs

 

Due time: Sat, October 10, noon

         

 

This machine problem practices VBScripting to:  input numbers, use conditional constructs to select one of them, and then output the selected number.

This problem can be solved using input boxes, If-Else statements, message boxes, and comment statements.

You are required to work in pairs and use VBScripting to solve the problem (*.vbs files).  I will test it using VBScripting as found on the UWB standard machine configurations (XP operating System) by double clicking on  filename.vbs.

 

Program Requirements:

-          Asks the user for five numbers   (check to be sure the user has entered valid numbers.)

-          The numbers entered are assumed to be positive and not equal to each other (no duplicates)

-          Reports (echo) the numbers, properly labeled, to the user.

-          Selects the second smallest of the five numbers.  .

-          Reports the second smallest number to the user, properly labeled

-          Adequate comment statements,  good alignment/indentation, etc.

-          Comment statements  in the header section are to include both student names

 

Program submission: 

-          Turn in at class Catalyst Drop Box for MP0.

-          May turn in multiple versions ¡V only the last one will be graded.

-          Be sure to test your program ¡V that is the 1st thing I will do in grading it.  It must work!

-          In addition, the submission directory should contain a *.doc file with one short paragraph describing the programming procedure(s) you used as a team.  For example you might have worked together in coding it (as a pair); one might have coded the other tested; you might both have coded and chosen the ¡¥best¡¦ to turn in, etc.  This is a very simple problem and there is not much to report, but this will be our practice throughout the term.  Note:  it is unacceptable to report that you are taking turns and one of you did the entire development effort this time.  This must be a team effort.

 

 

WATCH OUT: Remember about using proper types for numeric variables; remember about using Option Explicit;

 

This programming assignment contributes approx 1% towards your final course grade.