Wednesday, May 20, 2020

C++ Homework help please!?

Lanita Reichman: Post your attempt at the code here so people can take a look at it and point out the mistakes. Do not expect people to do your homework FOR you for free. Show some effort on your end.

Buster Buchko: what have YOU tried so far? what part are you STUCK on? I'll program it for you, but i charge 40 dollars an hour for programming, regardless of its complexity.

Raul Lushbaugh: This is what I have so far:#include using namespace std;class circle{protected: double radius, area, volume, length; double PI; double calcVal() { PI = 3.14; area = PI*radius*radius; return area; }circle(double n = 1) { radius = n; }}; // end of class squareclass cylinder:public circle{public: double calcVal() { volume = (length*circle::calcVal()); return volume; } cylinder(double N = 1) : circle( N ) { }}; // end of class cubeint main(){ cylinder obj(1); cout system("pause"); return 0;}...Show more

No comments:

Post a Comment