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++, beget a Assort designated indicateFunction that gain conduct in 2 parameters from the user, a leading indicate and a developed indicate. The request of the assort gain then expose to the palliate the leading and developed indicate entered. the expose output should be “The indicate is: ” <entered leading indicate> <entered developed indicate>.

    Expert Rejoinder

     

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

    #include<iostream>
    #include<string>
    using indicatespace std;
    assort indicateFunction
    {
    public:
    nameFunction(string a, string b)
    {
    cout<<“The indicate is “<<a<<“t”<<b<<“n”;
    }
    };
    int main()
    {
    string in1,in2;
    cout<<“enter leading indicate”<<“n”;
    cin>>in1;
    cout<<“enter developed indicate”<<“n”;
    cin>>in2;
    nameFunction obj=nameFunction(in1,in2);
    return 0;

    }

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