D is the answer to this question. It is very important for people to stay in the right positon before they hit the road.
Answer:
The correct answer to the following question is option A. Interoperability
Explanation:
Interoperability is the capacity to interact and work together. In other words, interoperability is an ability in which different types of systems, applications, products or devices to communicate and connect to work together, without any effort of end-user.
Interoperability is that property which allows for an unrestricted sharing of the resources between the different systems.
<u>Answer</u>:
<em>B. Morals are individually held beliefs, while ethics are imposed by an
</em>
<em>organization.</em>
<u>Explanation</u>:
<em>Morals are the beliefs designed or created by group of people.</em> It is concerned whether an action is right or wrong. It is basically a lesson learned from a situation or a story. <em>It also convey truth. </em>
Ethics are set of rules designed by <em>external agent or organization</em> and it differs from place to place but they have basic ethics in common.
<em>It is a branch of philosophy. These are also not relative to the situation. Both moral and ethics are used interchangeably.
</em>
Answer:
#include <iostream>
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;
}
void DogLicense::CreateLicenseNum(int customID) {
licenseNum = (100000 * customID) + licenseYear;
}
int DogLicense::GetLicenseNum() const {
return licenseNum;
}
int main() {
DogLicense dog1;
dog1.SetYear(2014);
dog1.CreateLicenseNum(777);
cout << "Dog license: " << dog1.GetLicenseNum() << endl;
return 0;
}
Explanation:
You can see the whole code above, but let me explain the fixed function.
void DogLicense::CreateLicenseNum(int customID) {
licenseNum = (100000 * customID) + licenseYear;
}
The function header is already declared in the class. It takes <em>customID</em> as a parameter. To find out the <em>lisenseNum</em>, we need to apply the given formula <em><u>(100000 * customID) + licenseYear</u></em>.