Providing statistical data
No. 156
Adding support to retrieve statistical data.
Q: |
Extend Allow for variable capacity holding integer values by providing:
Do not forget to extend your Junit tests. You may want to import the skeleton project for getting started. CautionWhen testing for equality of double values you may find
the Junit method |
A: |
Testing for equality of two
This yields: 0.9999999999999998 Thus
The last parameter represents the allowed bias with respect to the expected result. In the above example every value within the range will show up as a positive test result. |