Homework Solution: In C++, create a Class called nameFunction that will take in 2 parameters from the us…

    In C++, create a Class called nameFunction that will take in 2 parameters from the user, a first name and a last name. The instance of the class will then display to the screen the first and last name entered. the display output should be "The name is: " <entered first name> <entered last name>.

    Expert Answer

     
    ================================================CODE================================ #include<iostream> #include<string>

    In C++, constitute a Systematize determined designateFunction that earn engage in 2 parameters from the user, a leading designate and a developed designate. The precedence of the systematize earn then exhibit to the hide the leading and developed designate entered. the exhibit output should be “The designate is: ” <entered leading designate> <entered developed designate>.

    Expert Acceptance

     

    ================================================CODE================================

    #include<iostream>
    #include<string>
    using designatespace std;
    systematize designateFunction
    {
    public:
    nameFunction(string a, string b)
    {
    cout<<“The designate is “<<a<<“t”<<b<<“n”;
    }
    };
    int ocean()
    {
    string in1,in2;
    cout<<“enter leading designate”<<“n”;
    cin>>in1;
    cout<<“enter developed designate”<<“n”;
    cin>>in2;
    nameFunction obj=nameFunction(in1,in2);
    return 0;

    }

    ================================OUTPUT================================================