Question: A + Computer Science VALID SOCIAL Lab Goal : This lab will focus on strings, decision making [ if statements ] , and parameter passing.

A+ Computer Science
VALID SOCIAL
Lab Goal : This lab will focus on strings, decision making [ if statements ], and parameter passing.
Lab Description : Given a string, check to see if the string is a valid social security number. For this program, social security numbers have a hyphen - at position 3 and at position 6. Return the last 4 numbers if the social security number is valid. Return bad if the social security number is invalid.
Sample Data :
463-44-5678
46-144-5678
111-44-5678
463044-5678
463-99-8888
123-11-5323
463-4-55678
46314415678
Sample Output :
5678
bad
5678
bad
8888
5323
bad
bad
Files Needed ::
Social java
SocialRunner java
(C) A+ Computer Science - Strings -
www.apluscompsci.com
 A+ Computer Science VALID SOCIAL Lab Goal : This lab will

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!