No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
The house is built of non-standard form. All four walls are of a rectangular shape, but different height and length. The width of the walls is two bricks. There are two types of bricks. The outer part of the wall is constructed from the first type of brick, and the … |
|
class brick { private: int length, width, height;// in mm public: void set(int len, int wid, int hei); int getlength(){return length;} int getwidth(){return width;} int getheight(){return height;} }; void brick::set(int len, int wid, int hei) { length=len;width=wid;height=hei;} #include <iostream> using namespace std; /*After Set() method write main() function which would … |
|
class item { public: string name; string code; double price; }; class buyer { public: string name; int count; }; #include<string> #include<iostream> using namespace std; int main() { item item1; buyer buyer1,buyer2; double sum1,sum2,sumTotal; cout<<"enter name, code and price of item:"<<endl; cin>>item1.name>>item1.code>>item1.price; // The data for the first buyer cout … |
|
Create a class Candy with the following data: weight of one candy bag, price of one candy bag. There are three types of candy in the store. Find the weight and price of heaviest candy bag. What is the price of 1 candy bag with minimum weight? Extend the … |