Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Program is to find the area of room:
Program is to find the area of room with default values using classes & object
class room
{
private:
int len;
int wid;
int hei;
public:
int ar;
// function definitions
void assign()
len=20;
wid=30;
hei=40;
}
void area()
ar=2*(len*wid+wid*hei+hei*len);
void disp()
cout<<" length "< cout<<" breadth "< cout<<" height "< cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
cout<<" breadth "< cout<<" height "< cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
cout<<" height "< cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
};
void main()
clrscr();
room area1;
area1.assign();
area1.area();
area1.disp();
Program is to define a class as employee: Write a program to define a class as employee and collect information about them by using classes and object class employee {
What if one can''t wrap the local in an artificial block?
Find out the largest torque: A flat belt is taken in use to transmit torque from pulley A to pulley B as shown in figure given below. The radius of each pulley is 50mm and co
Overloading Binary Operators Using Friend Function class SI {float i,p,n,r,a; public: SI(){}; SI(int gp,int gn, int gr); void putdata(void); friend SI operato
You are required to give C++ implementation of following classes: 1. PropertyCategories 2. Plot 3. Flat 4. House Following is the description of all data member and member funct
Specifying a Class: As discussed a class is defined to develop an algorithm and bind it together in a core shell. A class is an abstract data type (ADT). The binding of dat
This question deals with AVL trees. The representation to be used is similar to the bank account object discussed in class. (a) Define a procedure called make-avl-tree which mak
Write a function to accept a character and display it 40 times.
there is a pebble merchant. he sells the pebbles,that are used for shining the floor.his main duty is to take the length of the room side but he sometines mistakes doing that and m
A: The answer to this lies actually, how they used. Along ++i(PreIncrement) the variable is incremented and new value is returned. Thus it needs one instruction to increment the va
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd