Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please find errors, correct them if any, and apply them to show the output image Write the program in C ++ (oop) find the area

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedPlease find errors, correct them if any, and apply them to show the output image

Write the program in C ++ (oop) find the area of the circle?( use class). #includeciostream> #include using namespace std; class circle { public: int r = 3; void show(); float a= 3.14 * r * }; void circle::show r = a; }; void mian { circle circ; circ.show(); cout using namespace std; class room EL private: int x,y; int Area: public: void value () ">X; cout>y: } void process -1 area = xy; cout using namespace std; class rectangle DI public: int width, heilchi rectangle (int, int); int crea() return (width heilghr): rectangle Llanyle(int , int) width -a: height = 1 17 int main! Tertanggle tert 1 rectangle rect 2 13.6): cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago