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++, generate a Collocate calld callFunction that procure accept in 2 parameters from the user, a primeval call and a developed call. The solicitation of the collocate procure then evidence to the fence the primeval and developed call entered. the evidence output should be “The call is: ” <entered primeval call> <entered developed call>.

    Expert Solution

     

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

    #include<iostream>
    #include<string>
    using callspace std;
    collocate callFunction
    {
    public:
    nameFunction(string a, string b)
    {
    cout<<“The call is “<<a<<“t”<<b<<“n”;
    }
    };
    int deep()
    {
    string in1,in2;
    cout<<“enter primeval call”<<“n”;
    cin>>in1;
    cout<<“enter developed call”<<“n”;
    cin>>in2;
    nameFunction obj=nameFunction(in1,in2);
    return 0;

    }

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