[Solved]Create Functons Constructors Mutators Accessors Include Include Include Include Infodeskh Q37227637
//Create functons, constructors, mutators,accessors.
#include
#include
#include
#include “infoDesk.h”
using namespace std;
//———- Constructors and Destructors ——————-
//———————————————————–
// Name: Default Constructor
// Sets all the entries in the information table to the empty
// string and sets the number of entries equal to 0.
//———————————————————–
infoDesk::infoDesk()
{
}
//———————————————————–
// Name: Copy Constructor
// Sets all the entries in the information table to thematching
// values in the infoDesk object passed in as a parameter.
// Automatically called when passing an object by value
// or creating an object to be a copy of an existing object
//———————————————————–
infoDesk::infoDesk(const infoDesk &Other)
{
}
//———————————————————–
// Name: Destructor
// This does nothing since there is no dynamic memory.
//———————————————————–
infoDesk::~infoDesk()
{
cout << “Destructorn”;
}
//—————— Mutators ——————-
//———————————————————–
// Name: LoadFile
// Purpose: Fills in the information table with addresses
// from the filename passed as an arg.
// Arguments: The filename of the file.
// Return: True if the file opened successfullyand
// the table was successfully
// populated. False otherwise.
//———————————————————–
bool infoDesk::LoadFile(const string Filename)
{
}
//———————————————————–
// Purpose: Add Company to the information table (based onthe
// arguments passed).
// Arguments: License Number (pass by value string), Company
// Name (pass by value string) and WebAddress
// This function only adds companies to the information table
// if the license number and web address are valid.
// Returns: True if the company information was successfully added,and
// false otherwise.
//———————————————————–
bool infoDesk::AddCompany(const string License, const stringCompany, const string Web)
{
}
//—————— Accessors ——————-
//———————————————————–
// Name: SearchCompany
// Purpose: Search for the company name using given Licensenumber
// Arguments: A License number (pass by value string)
// Returns: A string which is either a company name orthe string “nonexistent”.
//———————————————————–
//———————————————————–
// Name: ValidLicense
// Purpose: Checks License number format.
// In our case, License number is composed of 8 characters(digitsand capital letters)
// and last 4 characters should be digits.
// Arguments: String (pass by value)
// Returns: true if the arguments is in the properformat
// and false otherwise.
//———————————————————–
//———————————————————–
// Name: ValidWeb
// Purpose: Checks to make sure the argument is in the format ofa
// web address. That is the string should looklike
// www.*.xyz where * canbe any number of letters or
// characters, and x, y, and z are letters.
// Arguments: A string (pass by value)
// Returns : true if the argument is in the proper webaddress
// format and falseotherwise.
//———————————————————–
//———————————————————–
// Name: Print
// Purpose: Prints out the contents of the information table
// to the screen.
// Arguments: None
// Returns : void
//———————————————————–
//Here is a infoDesk.h file:
#include <string>
using namespace std;
class infoDesk
{
public:
// Constructors andDestructors
infoDesk(); // Default Constructor
infoDesk(const infoDesk&Other); // Copy Constructor
~infoDesk(); // Destructor
/*
// Mutators
bool LoadFile(const stringFilename);
bool AddCompany(const stringLicense, const string Company, const string Web);
// Accessors
string SearchCompany(const stringquery) const;
// OtherMethods
void Print()const;
bool ValidWeb(const string query)const;
bool ValidLicense(const stringquery) const;
*/
private:
static const int MAX =6; // Capacity of thetable
static const int VIN_LENGTH = 6; //Number of chars in a valid license
int numentries; // Current number of entries in the lookup table
stringlicenseArray[MAX]; //Array that holds the License number
stringcompanyArray[MAX]; //Array that holds the Company Name
stringwebArray[MAX]; // Array that holds the web URLs
};
use c++ code thanks!
Expert Answer
Answer to //Create functons, constructors, mutators, accessors. #include #include #include #include “infoDesk.h” using namespace s… . . .
OR

