Write a C++ program that reads in a line consisting of astudent’s name, Social Security number, user ID, and password. Theprogram outputs the string in which all the digits of the SocialSecurity number and all the characters in the password are replacedby x. (The Social Security number is in the form 000-00-0000, andthe user ID and the password do not contain any spaces.) Yourprogram should not use the operator [] to access a string element.Use the appropriate functions described in Table 7-1below.
ExpressionEffectstrVar.at(index)Returns the element at the position specified byindexstrVar[index]Returns the element at the position specified byindexstrVar.append(n, ch)Appends n copies of
OR
OR