ok so im suppose to Construct a class Circle with data member radius and methods to initialize the radius to 1.0 change the value of the radius; c) calculate the circumference of the circle; d)calculate the area of the circle; and e)show the value of the radius. them im suppose to declare two objects circle1 and circle2, change the value of the radius of circle2, show the value of circle2 , calculate the circumference of circle1 and display the result in main; and calculate the area of circle2 and display the result in main
These are the six steps that you need to take, as I have understood them based on the information you provided:
1.) declare two objects (circle1 and circle2)
2.) change the value of circle2 radius
3.) show the value(?) of circle2
4.) calculate circle1 circumference
5.) call circle1.print()
6.) call circle2.print()
If you would elaborate on what you mean with "show the value of circle2", I could help you further. Although, this is as straight forward as it gets. What exactly is it that's confusing you?
all i need to do is show the answer to circle two like rge radius that i get and im confused because when i run the program i get this
Please enter a new radius
2
The info for the circle is as follows
Radius = 2
Diameter = 4
Area = 12.5664
Circumference = 12.5664
so does that count as one of the cirlces or do i have to do two other separate circles doing the same thing because i get the circumference and the area already.