Question: Problem 2: DigitCounter ( 3 pts) (String manipulations, overloaded methods, UML diagrams, type conversions) Java does not include a native ability to tell how many

 Problem 2: DigitCounter ( 3 pts) (String manipulations, overloaded methods, UML

Problem 2: DigitCounter ( 3 pts) (String manipulations, overloaded methods, UML diagrams, type conversions) Java does not include a native ability to tell how many decimal places are entered for a floatingpoint number. You need to build a support class to use in the next problem. Required: - DigitCounter class: contains the support methods that can be used by other classes - digits method returns the number of digits LEFT of the decimal. - decimals method returns the number of digits RIGHT of the decimal. - Overloaded methods: both digits() and decimals() must have overloaded methods that accept as parameters float, double, int, or String. (i.e. four versions of each method) UML diagram include in your submission a UML diagram suitable for another coder to use your methods without seeing your source code. - PASS ALL TESTS The test code "DigitCount Tester" must access your class and display "pass" for all tests. Submit: - Source code - Screen shot showing DigitCountTester results - UML diagram

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!