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();
give the coding in c++
Conversion from Basic to User-Defined variable Consider the following example. class Distance { public :
Question : (a) What is a structure? Provide a simple example of your own to illustrate this feature. (b) How does a structure differ from an array? (c) Describe a structu
When I develop a destructor, do I require to explicitly call the destructors for my member objects?
Define How Passing Arrays to a Function? A complete array can be passed to a function as an argument. The manner in which the array is passed be different from that of an ordin
string S convert it to a palindrome by doing chara, C/C++ Programming
The concept of a string in C is difficult, because a string is a collection of characters stored in memory terminated by a NULL string i.e. \0. Let us consider the string Hello. Th
Question 1 Write a program that accepts a 3x3 matrix from the user and finds the transpose of it Question 2 Explain Brief about class and objects. Also describe friend functi
Selection Sort using this a nested for loop to iterate through and compare the array elements. If the value of an element with lower index is greater than the value of an element w
program
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd