Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ please. 1. Complete the implementation of the classes circle and cylinder as decleared in the following program. Declaration of Figures Classes /* File:

image text in transcribedimage text in transcribed

In C++ please.

1. Complete the implementation of the classes circle and cylinder as decleared in the following program. Declaration of Figures Classes /* File: figures.h classes which represent points, circles and cylinders in the plane / #ifndef FIGURES_H #define FIGURES_H #include #include using namespace std; class point { private: float x; float y: public: point (float a, float b); void write (ostream& out) const; // = and y = b // write a point in the form (1, y) class circle { private: point centre; float radius; public: circle (float a, float b, float r); void write (ostream& out) const; class cylinder { private: circle base ; float height; public: cylinder (float a, float b, float r, floath); void write (ostream & out) const; #endif /* FIGURES H / Implementation of Figures Classes /* File: figures.cpp Implementation of classes point, circle, and cylinder / #include " figures.h" m m implementation of point I point :: point (float a, float b) // I = a and y = b x y = = a; b; void point :: write (ostream& out) const // write a point in the form (1,y) out

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

Step: 3

blur-text-image

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions