Please consider the following program
/************************************************************
* Program 1, a program to construct username and password *
* Programmer Dan Bennett *
* *
* This program will output a username and password *
************************************************************/
#include <iostream>
#include <string>
const char first_initial ='d'; // the first initial of the first name
const char last_initial ='b'; // the first initial of the last name
const string idno = "345678"; // The banner id (last six digits only)
const string month = "07"; // Month the person was born
const string day = "04"; // The day the person was born
const string year = "76"; // Last two digits of the year of birth
int main () {
string username; // the constructed user name
string passwd; // the constructed password
// build the username
username = first_initial + idno + last_initial;
// build the password
passwd = month + day + year;
// output the results
cout << "The username is "<< username << endl;
cout << "The password is "<< passwd << endl;
return(0);
}