Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Q-3] Create a Class called “CEMENT”, having the following data Members:
- Bag ID
- Weight in Bag [ fixed value 20kg ]
- Type [ such as Type 1 and Type 2 ]
- Price of Bag [ Rs. 225 for Type 1 and Rs. 300 For Type 2 ]
Now define the functions to add N new bags in the manufacturing list, check
whether any bag has error in weight, if erroneous bag found then calculate the error
in weight and fins the type. Also count the loss in term of Rupees.
Q-5] Using Friend Function User can Exchange the Value of Two Different Class