ssn = input("Enter a valid Social Security number: ")
dashes = 0
nums = 0
message = "Invalid SSN"
if len(ssn) == 11:
for x in ssn:
if x.isdigit():
nums += 1
elif x == "-":
dashes += 1
if nums == 9 and dashes == 2:
message = "Valid SSN"
print(message)
I wrote my code in python 3.8. I hope this helps!
Efficiency because if you don't have very good efficiency then somebody can't really read it so they won't know what it's saying.
C: pie chart is the answer to it
Incomplete/Incorrect question:
Provide an example by creating a short story or explanation of an instance where confidentiality would be broken.
<u>Explanation:</u>
Note, the term confidentiality refers to a state or relationship between two parties in which private information is kept secret and not disclosed by those who are part of that relationship. Confidentiality is broken when this restricted information is disclosed to others without the consent of others.
For instance, a Doctor begins to share the health information of a patient (eg a popular celebrity, etc) with others such as his family members and friend
s without the consent of the celebrity.