NOTE!!! Received some help with this code from Bartleby tutors, code runs without errors. There is an issue when the output is displayed, I cant seem to display the proper output that is being asked. for example here is the CORRECT OUTPUT below in bold. I have included a screenshot attachment of what my output looks like compared to the correct output in bold below. John Doe xxxxxxxxx DoeJ xxxxxxxxxxx #include #include using namespace std; int main() { int counter ; String Name, SSN, Password, UserId; cout << "Enter your Name: "; getline (cin, name); cout << "Enter your SSN (no space required): "; cin >> ssn; cout << "Enter your UserID: "; cin >> UserId; cout << "Enter your Password: "; cin >> Password; cout <
C++
NOTE!!! Received some help with this code from Bartleby tutors, code runs without errors.
There is an issue when the output is displayed, I cant seem to display the proper output that is being asked. for example here is the CORRECT OUTPUT below in bold. I have included a screenshot attachment of what my output looks like compared to the correct output in bold below.
John Doe xxxxxxxxx DoeJ xxxxxxxxxxx
#include<iostream>
#include<string>
using namespace std;
int main()
{
int counter ;
String Name, SSN, Password, UserId;
cout << "Enter your Name: ";
getline (cin, name);
cout << "Enter your SSN (no space required): ";
cin >> ssn;
cout << "Enter your UserID: ";
cin >> UserId;
cout << "Enter your Password: ";
cin >> Password;
cout <<end1;
cout <<"Name: " << Name <<end1;
cout << "SSN: XXX-XX-XXXX"<<end1;
cout << "UserId: ";
for(counter=0; counter<User.Id.length(); counter++)
{
cout << "x";
}
cout <<end1;
cout << "Password: ";
for(counter=0; counter<Password.length(); counter++)
{
cout << "x";
}
cout <<end1;
return 0;
}
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images