Question: Problem Description Write a program to take the radius from the user and find the area of the circle and perimeter using classes. Use formula
Problem Description Write a program to take the radius from the user and find the area of the circle and perimeter using classes. Use formula [ Area= pi* radius 2, Perimeter = 2 pi*radius] Instructions 1. Take the value of the radius from the user. 2. Create a class and using a constructor initialize the values of that class. 3. Create a method called an area which returns the area of the class and a method called a perimeter which returns the perimeter of the class. 4. Create an object for the class. 5. Using the object, call both methods. 6. Print the area and perimeter of the circle. 7. Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
