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

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!