Question: Create a Java class called ZeroToNine that checks if a given 10-digit number has all the 10 digits (one of each) Accept a 10 digit
Create a Java class called ZeroToNine that checks if a given 10-digit number has all the 10 digits (one of each)
Accept a 10 digit number from the user
Validate that the input number is 10 digits long.
If the validation is successful:
Use a loop, decision structures and the relevant arithmetic operators to determine if each of the 10 digits are included in the number
Output a descriptive sentence based on the result
Requirements:
You cannot convert the number to a string. You must use arithmetic operators and a loop to determine the output.
Since we have not started the unit on Arrays, you cannot use Arrays or any other data structure to solve this problem.
Limit your syntax to the content covered so far in this term
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
