Page 175 - C++
P. 175
}
float RESORT:: COMPUTE( )
{
float Amount = Charges * Days;
if (Amount>11000)
Amount = 1.02 * Days * Charges;
return Amount;
}
(d) Consider the following C++ code and answer the questions from (i) to (iv): (4)
class MNC
{
char cname[25];
protected:
char hoffice[25];
public:
MNC() {}
char country[25];
void enterdata() { }
void displaydata() {}
};
class branch : public MNC
{
long noe;
char ctry[25];
protected:
void association() {}
public:
Branch() {}
void add() {}