Wyo VB Ch5Proj1 Specs

Write a program to put three inputted words into ascending (i.e. a to z) alphabetical order with a case-insensitive comparison. The user will type in three words or phrases into three separate text boxes. When the user clicks a command button, the program must display the three strings in three separate labels lined up horizontally toward the bottom of the form. Even though the user may type the strings in mixed case (a combination of upper and/or lowercase), the program must order the strings in a case-insensitive fashion. Furthermore, the outputed strings must be displayed exactly as typed by the user except for any leading or trailing spaces. Since the user may type leading and/or trailing spaces into the textboxes, the program must trim off any leading or trailing spaces from the inputed strings. See the sample test plan cases below.

Your program must follow the Coding Standards. You could lose many points for violating the Coding Standards (e.g. poor spacing, incorrect indentation, incorrect prefixes, etc.) Save the form (frmMain.frm) and project (Ch5Proj1.vbp) files in a newly created folder named Ch5Proj1. If you create the Excel test plan at school, save it in the same Ch5Proj1 folder.

Preconditions:

Staple your printouts in the following order:

  1. VB code
  2. hand-written code
  3. MS Excel test plan - follow specified format
  4. Interface Design Planning Sketch - sketch as neatly as possible & show Captions
  5. Objects & Properties Planning Form - include all property settings made during Design Time
  6. Event Procedures Planning Form - be sure to identify ALL steps

Test Plan - type into Excel

 

Possible Inputs

 

Expected Outputs

Reason
 

1st string

2nd string

3rd string

 

1st label
2nd label

3rd label

 

1.

apple

carrot

Banana

apple
Banana

carrot

normal inputs

2.

_appLE

apples_

cat

appLE
apples

cat

leading & trailing spaces (indicated by underscore)

3. aaaaaaaaaa bbbbb ZZZ   aaaaaaaaaa bbbbb ZZZ testing max length of 1st string and case insensitivity
Create A LOT more test items of your own!