Bit-String Flicking Programming Assignment

Specs   

Write a program that allows the user to enter two bit strings of length 1 to 5 and compute the result using the binary logical operations, AND, OR, XOR, and XNOR. The program must also allow the user to apply the unary operations NOT, RSHIFT, LSHIFT, RCIRC, or LCIRC, entering a shift or circulate amount if necessary. In the case of the unary operations, the user should not have to enter a second, unnecessary bit string. Use textboxes and labels rather than input boxes and message boxes. Include Clear and Exit buttons as well. Use a combo box so that the user can make a choice of which operation to perform. See this demo program as a model when starting this assignment. You may also refer to this Eqv/XNOR demo program for help with one part of this assignment. A copy of the demo program project is located in our class template folder.

Preconditions:

  1. The user will enter bit strings of equal length when supplying two bit strings for logical operations.
  2. The user will enter bit strings that are 5 bits long or less.
  3. When inputting one bit string for unary operations, the user will enter the bit string into the first text box.
  4. The user will type bit strings with 1's and 0's only and no intervening spaces.

Save the form and project files as "BitStringFlickingCalculatorJD" with the proper file extensions (.frm & .vbp, respectively) and with your initials substituted for JD. Save the whole project in a newly created folder named "Bit String Flicking Calculator".

Your program must follow the Visual Basic Documentation & Coding Standards. Review them carefully before you submit your final program. Please submit printouts of the code and the form image stapled together with the code on top. Write your name and period number in pen or pencil on the top paper as well. Also, you should temporarily set the Visible property of any hidden objects (labels, textboxes, etc.) to True, so that they appear on the printout which you submit for a grade.

It is recommended that you complete the following related worksheets before this assignment: worksheet #1, worksheet #2


BASIC Programming Home Page | Mr. Minich's Wyo Home Page