BinaryNum |
Create a class named BinaryNum that includes an array of booleans as a property and the following methods:Implement methods that will return its decimal value, its opposite, its doubled value, its halved value, etc. Create a binary number calculator.
Also, create a default constructor as well as an "other" constructor. Write a test class named BinaryNumTest that thoroughly tests all of the methods and constructors. The test class must be adequately annotated so its easy for the instructor to see that all the methods work correctly. The test class must first allow the user to input binary values to the keyboard. Your program must follow the class Coding Standards. Preconditions:
You must hand in the following on separate pages stapled in this specified order:
|