Question: In C++ format pls... A 2-character string, userPassword, is read from input. Replace each character in userPassword that is not alphabetic with 'S'. Otherwise, userPassword

In C++ format pls...

In C++ format pls... A 2-character string, userPassword, is read from input.

A 2-character string, userPassword, is read from input. Replace each character in userPassword that is not alphabetic with 'S'. Otherwise, userPassword is not changed. Ex: If the input is 4c, then the output is: $c 12345678910111213141516#include#include#includeusingnamespacestd;intmain(){stringuserPassword;getline(cin,userPassword);|cout

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!