Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

Students also viewed these Databases questions

Question

2. Why do we need legislation to protect women in the workplace?

Answered: 1 week ago

Question

Question Can a Roth IRA invest in stock of the IRA owners business?

Answered: 1 week ago