Reference no: EM13710892
Q. What will be displayed on console for the following code segments when main function will be executed? [05j class Message protected:
string msg;
public:
string getMsg(void)
return msg;
void setMsg(string msg)
this->msg = msg;
};
class SMS : public Message string msg;
public:
string getMsg(void)
return Message::msg; void setMsg(string msg) Message::msg = this->msg;
int main(void)
Message .p_msg = new Message(); p_msg->setMsg("001,");
Question:
A cuboids is a three-dimensional shape having different measurements in each dimension say x, y and z. Cuboids shapes are often used for boxes, cupboards, rooms, buildings, etc. So keeping in the mind the importance of Cuboids you have to implement the following functionalities
a. Declare a class named Cuboids with its three data members of type float to have the measurements of the three dimensions.
b. Value should only ie assigned to the data members when it is greater than 0 and lesser than 35.00. Write all the set functions for each data member to set their values.
c. Implement default (sets all data members to 1), parameterized and copy constructor.
d. Provide a member function for taking the inputs for a particular object's data.
e. Overload assignment operator to assign the data of one object to another.
f. Overload stream insertion operator to display the data of object on the console.
g. Overload arithmetic addition (0) operator to return the result of two objects after addition.
Explain the hydroxide ion-promoted hydrolysis of ester
: In the early days of studies of the mechanism of the hydroxide ion-promoted hydrolysis of ester, it was not clear which bond was broken- the acyl C-O bond or the akyl C-O bond.
|
Explore business in foreign markets
: Discuss the applicability of different marketing orientations to each of Avon's global operations. Why is Avon so much more dependent on its foreign operations than on its home (U.S.) operations.
|
Calculate the equilibrium constant kc for the reaction
: Problem- A 2.50 mol quantity of NOCL was initially placed in a 1.50-L reaction chamber at 400 C. After equilibrium was established, it was found that 28.0 percent of the NOCL had dissociated: 2NOCL (g) 2NO (g) + Cl2 (g). Calculate the equilibriu..
|
Calculate a ksp value for copper carbonate
: Problem- The solubility of CuCO3 is measured and found to be 1.88E-3 g/L. Use this information to calculate a Ksp value for copper(II) carbonate.
|
Write all the set functions for each data member
: Declare a class named Cuboids with its three data members of type float to have the measurements of the three dimensions - Write all the set functions for each data member to set their values.
|
Calculate a ksp value for copper carbonate
: Problem- The solubility of CuCO3 is measured and found to be 1.88E-3 g/L. Use this information to calculate a Ksp value for copper(II) carbonate.
|
Calculate the heat of vaporization kj/mol of methanol
: Problem- Dry nitrogen gas (100.0 L) was bubbled through liquid methanol, CH3OH, at a given temperature and the evaporated methanol condensed; its mass was then measured. Using the data below, calculate the heat of vaporization (kJ/mol) of methanol
|
Describe the business expansion methodologies
: You are the international manager of a U.S. business that has just developed a revolutionary new personal computer that can perform the same functions as existing PCs but costs only half as much to manufacture.
|
How many ml nacl solution were delivered
: Problem- A patient needs to receive 1.25g of NaCl in 12 hours. How many mL of a 0.5% (m/v) NaCl (saline) solution were delivered in 36 hours? report answer in two significant figures
|