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
Bdbdbdhdhdhdhdjdbsbbrvrvrrvrvrvfvfvvfvfvfvfvfhdhdhdhdhdhdhhdududududududuebebbedvdvd I known why ahh it happened
Answer:
A. a period of darkness or low visibility
Explanation:
When a vehicle strikes a pedestrian, it's most often during a period of darkness or low visibility.
If user output is ''red purble yellow exit'': red purple yellow import java.util.Scanner; import java. io.PrintWriter; import java. io.StringWriter; public class StringStreamOutput { public static void main (String [] args) { Scanner snr = new Scanner(Scanner.in); Stringuseritem = ''''; StringWriter itemcharStream = new StringWriter(); PrinterWriter itemsOSS = new PrintWriter(itemcharStream); System.out.printIn(''Enter items (type Exit to open):''); useritem = scnr.next(); while (!userItems.Equals(''Exit'')) { /*Your solution goes here*/ UserItem = scnr.nxt(); } useritem = itemCharStream.toString() System.out.printin(useritem); return; } }
Answer:
maybe blockchain can help them in term of security