Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started