Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Discover comprehensive answers to your questions from knowledgeable professionals on our user-friendly platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

(10 POINTS) in C ++ Define the missing function. licenseNum is created as: (100000 * customID) + licenseYear, where customID is a function parameter.
Sample output with inputs 2014 777:
Dog license: 77702014
#include
using namespace std;
class DogLicense {
public:
void SetYear(int yearRegistered);
void CreateLicenseNum(int customID);
int GetLicenseNum() const;
private:
int licenseYear;
int licenseNum;
};
void DogLicense::SetYear(int yearRegistered) {
licenseYear = yearRegistered;
}
// FIXME: Write CreateLicenseNum()
/* Your solution goes here */
int DogLicense::GetLicenseNum() const {
return licenseNum;
}
int main() {
DogLicense dog1;
int userYear;
int userId;
cin >> userYear;
cin >> userId;
dog1.SetYear(userYear);
dog1.CreateLicenseNum(userId);
cout << "Dog license: " << dog1.GetLicenseNum() << endl;
return 0;
}