4. (Check SSN) Write a program that prompts the user to enter a Social Security number in the format DDD-DD-DDDD, where D is a digit. Your program should check whether the input is valid. Here are...


4. (Check SSN) Write a program that prompts the user to enter a Social Security<br>number in the format DDD-DD-DDDD, where D is a digit. Your program should<br>check whether the input is valid. Here are sample runs:<br>Enter a SSN: 232-23-5435<br>JEnter<br>232-23-5435 is a valid social security number<br>Enter a SSN: 23-23-5435<br>JEnter<br>23-23-5435 is an invalid social security number<br>

Extracted text: 4. (Check SSN) Write a program that prompts the user to enter a Social Security number in the format DDD-DD-DDDD, where D is a digit. Your program should check whether the input is valid. Here are sample runs: Enter a SSN: 232-23-5435 JEnter 232-23-5435 is a valid social security number Enter a SSN: 23-23-5435 JEnter 23-23-5435 is an invalid social security number

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here