Question
a 2 digits-repeating number ( D-RN) is an multiple ( has to be greater than 2) of a integer number that has only 2 digits
a 2 digits-repeating number ( D-RN) is an multiple ( has to be greater than 2) of a integer number that has only 2 digits and they can't be mixed. For example, 2299 is a D-RN, but 229922 is not a D-RN. Using Java, write a program and implement digits.class that contains a method to input numbers, another one to compute ( check) which numbers are D-RN, and another method to describe the frquency of digits in the D-RN.
Sample input:
4 <===== Numbers need to be input
7
14
150
2005
Output:
7: 1 1 1 4 ( there is one 1 and one 4 for 14)
14: 1 2 1 8 ( there is one 2 and one 8 for 28)
150: 1 3 2 0 ( there is one 3 and two 0 for 300)
2005: 3 2 3 5 ( there is three 2 and three 5 for 222555)
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