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
Hmmm when they say that we have a debt of $10,000 but you don't but you don't know that so they ask you for the personal data for your bank so their can get in and get the money for you so you don't have to and that how they trick you
import java.util.Scanner;
public class JavaApplication33 {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int total = 0;
System.out.println("Enter positive numbers (-1 to stop)");
while (true){
int num = scan.nextInt();
if (num == -1){
break;
}
else{
total += num;
}
}
System.out.println("Sum is "+total);
}
}
I hope this helps!
The correct answer is “C. Cookies”