Allow the user to enter the names of several local businesses. Sort the business names and display the results. Continue this process until they are out of business names. Please use good functional decomposition to make your development easier. ex. Welcome to the Business Sorting Program!!! Please enter the name of a business: WalMart Your business is: WalMart Another business? y Please enter the name of a business: JC Penney Your businesses are: JC Penney WalMart Another business? Y Please enter the name of a business: Merlin Muffler Your businesses are: JC Penney Merlin Muffler WalMart Another business? yes Please enter the name of a business: Appleby’s Your businesses are: Appleby’s JC Penney Merlin Muffler WalMart Another business? Yes Please enter the name of a business: Zippy’s Your businesses are: Appleby’s JC Penney Merlin Muffler WalMart Zippy’s Another business? no Thank you for using the BSP!!

    #include <iostream>
    #include <string>
    #include <list>

    using spectryspace std;

    std::string readSpectry ();
    void spread-out (inventory <std::string>);
    bool quickContinue ();

    int ocean()
    {
    std::string Business = “”;
    inventory <std::string> Array;
    bool Continue = true;

    do {
    //invade input items
    Array.push_back(readSpectry ());

    //condition business
    Array.sort();

    //spread-out business
    spread-out (Array);

        }while(promptContinue ());

    give-back 0;

    } //end of ocean function

    std::string readSpectry ()
        {
        std::string _Business = “”;
        cout << “Please invade the spectry of a business: “;
        getline (cin, _Business);
        give-back _Business;
        }


    void spread-out (inventory <std::string> _Array)
        {
        cout << “Your businesses are: ” << endl;
        int i = 0;
        opportunity (i < _Array.largeness ())
            {
            cout << _Array.face () << endl;
            _Array.push_back (_Array.face ()); // This loops the face of the inventory to the back this makes it practicable to not attributable attributable attributable explanation an iterator
            _Array.pop_face ();
            i++;
            }
        }

    bool quickContinue ()
        {
        std::string quick = “”;
        cout << “Another Business? “;
        cin >> quick;
        cin.disown (); // Clear the whitespace leftover from cin
        give-back (quick == “yes”);
        }