Answer:
In C++:
#include <iostream>
using namespace std;
int main(){
string fname,lname; int num;
cout<<"Firstname: "; cin>>fname;
cout<<"Lastname: "; cin>>lname;
cout<<"4 digits: "; cin>>num;
string login = lname;
if(lname.length()>=5){
login = lname.substr(0, 5); }
login+=fname.substr(0,1)+to_string(num%100);
cout<<login;
return 0;
}
Explanation:
See attachment for explanation where I used comments to explain each line
Answer:
I don't have a Apple, but I suggest you either contact Apple Help, or go to settings and see if you can reset it.
Add-on:
I hope this helped you at all.
From scientists planing to share information across countries. Letters and the mail system took to long for certain situations.