How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask TheDoctor Your Own Question
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1757
Experience:  M.S. in Internet Information Systems
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

To TheDoctor

This answer was rated:

To TheDoctor :Write a program that prompts the user to enter a social security number in the format DDD-DD-DDDD, where D is a digit. The program displays “Valid SSN” for a correct social security number and “Invalid SSN” otherwise. Write a method that counts the occurrences of each digit in a string using the following header: public static int[] count(String s) The method counts how many times a digit appears in the string. The return value is an array of ten elements, each of which holds the

Hello again! Thank you for requesting me.

You can download the completed assignment here:

Both of the functions are in the text file.

Let me know if you have any questions or issues. I'm here to help.

Please remember to rate my answer. Thank you so much!
TheDoctor and 3 other Homework Specialists are ready to help you
Customer: replied 4 years ago.

Please can u send it for me with full answer in java file


Thank u

Hello again,

If I understand, you want a Java file that demonstrates these functions working. You can download this file here:

This is a working Java file. I put in the main function so that you can run and use the functions. Let me know if you need anything else.

Please remember to rate my answer. Thank you again.
Customer: replied 4 years ago.

Please do the same thing with the second question


Thank u

Hello again,

Both the SSN function and the Count function are in that Java file. When you run it test both functions.

If you want them as two separate java files, then I will update both. I will have to send you a new, as that currently has both functions in it.
Customer: replied 4 years ago.

Yes I want it separate please


You need to spend $3 to view this post. Add Funds to your account and buy credits.
TheDoctor and 3 other Homework Specialists are ready to help you

Related Homework Questions