Question: Write a program that reads in a line consisting of a students name (first and last), Social Security number, user ID, and password. Use getline

Write a program that reads in a line consisting of a students name (first and last), Social Security number, user ID, and password.

Use getline not cin so you can demonstrate an understanding of the string manipulation concepts The program outputs the string in which all the digits of the Social Security number and all the characters in the password are replaced by x. The Social Security number is in the form 000-00-0000, and the user ID and the password do not contain any spaces.

Your program should not use the operator [] to access a string element.

Write a program that reads in a line consisting of a students

Enter a student's name social security number user id, and password in one line: Jane Smith 222-33-4444 S12345 password Jane Smith xxx-xx-xxxx S12345 xxxxxxxx Press any key to continue

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!