Question: Assignment Overview In this assignment you will create and implement a Circle class that models geometric circles. This assignment is conclusive weeks 3 and 4
Assignment Overview
In this assignment you will create and implement a Circle class that models geometric circles. This assignment is conclusive weeks and and will enhance understanding of class design and encapsulation in objectoriented programming.
Objectives
Design a class with private and public member variables.
Implement member functions methods and a constructor.
Use setters and getters to ensure data encapsulation.
Organize the class definition and implementation into separate files.
Apply the const keyword effectively.
Task Breakdown
Part : Class Design
Create the Circle Class
Member Variables Private
Radius doubleColor string
Member Functions
Constructor to initialize radius and color ensure the radius is positiveunsignedGetters for:
RadiusColor
Setters for:
Radius ensure it remains positiveunsignedColor
A methodmember function to calculate the area of the circle.A methodmember function to calculate the circumference of the circle.
Part : File Organization
Separate the Circle class into:
Circle.h header fileCirclecpp implementation file
Part : Program
Be sure to implement your class in main. Demonstrate usability of your class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
